This commit is contained in:
Schuyler Cebulskie
2017-01-30 22:54:33 -05:00
parent 565c640bc6
commit f4724d61b2

View File

@@ -155,7 +155,7 @@ class WebSocketManager extends EventEmitter {
}
destroy() {
this.ws.close(1000);
if (this.ws) this.ws.close(1000);
this._queue = [];
this.status = Constants.Status.IDLE;
}