mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
small fix to disconnect function--null pointer exception
This commit is contained in:
parent
4e533cc63b
commit
37b2b01e02
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user