mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 14:25:05 -02:30
small fix to disconnect function--null pointer exception
This commit is contained in:
@@ -79,7 +79,9 @@ export default
|
|||||||
}, 2000);
|
}, 2000);
|
||||||
},
|
},
|
||||||
disconnect: function(){
|
disconnect: function(){
|
||||||
this.socket.close();
|
if(this.socket){
|
||||||
|
this.socket.close();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
subscribe: function(state){
|
subscribe: function(state){
|
||||||
console.log("Next state: " + state.name);
|
console.log("Next state: " + state.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user