We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a11e0 commit 54cc248Copy full SHA for 54cc248
src/Socket.js
@@ -305,7 +305,7 @@ export default class Socket extends EventEmitter {
305
* Ensures that no more I/O activity happens on this socket. Destroys the stream and closes the connection.
306
*/
307
destroy() {
308
- if (this._pending || this._destroyed) return this;
+ if (this._destroyed) return this;
309
this._destroyed = true;
310
this._clearTimeout();
311
Sockets.destroy(this._id);
0 commit comments