Remove handlers before disconnecting the socket
This commit is contained in:
parent
862dfa72c9
commit
2989fe1da4
1 changed files with 1 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ Network.prototype.cleanUp = function() {
|
||||||
this.criticalErr = '';
|
this.criticalErr = '';
|
||||||
this.removeAllListeners();
|
this.removeAllListeners();
|
||||||
if (this.socket) {
|
if (this.socket) {
|
||||||
|
this.socket.removeAllListeners();
|
||||||
this.socket.disconnect();
|
this.socket.disconnect();
|
||||||
this.socket = null;
|
this.socket = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue