mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
small fix to disconnect function--null pointer exception
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user