diff --git a/reconnecting-websocket.ts b/reconnecting-websocket.ts index 364d8f5e..1831bd09 100644 --- a/reconnecting-websocket.ts +++ b/reconnecting-websocket.ts @@ -377,6 +377,7 @@ export default class ReconnectingWebSocket { .then(url => { // close could be called before creating the ws if (this._closeCalled) { + this._connectLock = false; return; } this._debug('connect', {url, protocols: this._protocols, options: this._options});