metarhia / jstp

Fast RPC for browser and Node.js based on TCP, WebSocket, and MDSF
https://metarhia.github.io/jstp
Other
142 stars 10 forks source link

connection: fix reconnect throwing in some cases #345

Closed belochub closed 6 years ago

belochub commented 6 years ago

Fix reconnection throwing when the error during the process also led to the close event being emitted on the connection object.

belochub commented 6 years ago

Landed in https://github.com/metarhia/jstp/commit/02110961f0d4def3cf404211b043bf3e4839b36f.