mirror of https://github.com/BTCPrivate/copay.git
Remove handlers before disconnecting the socket
This commit is contained in:
parent
862dfa72c9
commit
2989fe1da4
|
@ -35,6 +35,7 @@ Network.prototype.cleanUp = function() {
|
|||
this.criticalErr = '';
|
||||
this.removeAllListeners();
|
||||
if (this.socket) {
|
||||
this.socket.removeAllListeners();
|
||||
this.socket.disconnect();
|
||||
this.socket = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue