diff --git a/awx/ui/client/src/shared/socket/socket.service.js b/awx/ui/client/src/shared/socket/socket.service.js index 1d14d72b69..da53e2998a 100644 --- a/awx/ui/client/src/shared/socket/socket.service.js +++ b/awx/ui/client/src/shared/socket/socket.service.js @@ -79,7 +79,9 @@ export default }, 2000); }, disconnect: function(){ - this.socket.close(); + if(this.socket){ + this.socket.close(); + } }, subscribe: function(state){ console.log("Next state: " + state.name);