pladaria / reconnecting-websocket

Reconnecting WebSocket. For Web, React Native, cli (Node.js)
MIT License
1.22k stars 197 forks source link

Free connect lock flag when disconnect before next delay. #89

Closed outaTiME closed 5 years ago

outaTiME commented 5 years ago

Hi @pladaria, this is a PR for related issue https://github.com/pladaria/reconnecting-websocket/issues/87

when close to fast before connect the this._connectLock flag keeps true, this fix restore to false when this._closeCalled.

pladaria commented 5 years ago

Thank you!

Published v4.1.9 with this change