Skip to content

Commit

Permalink
Fix infinite loop in error handling. (#332)
Browse files Browse the repository at this point in the history
Fix #329
  • Loading branch information
apirila authored and ibc committed Dec 3, 2019
1 parent e60f68d commit 574b703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebSocketConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ WebSocketConnection.prototype.handleSocketError = function(error) {
if (utils.eventEmitterListenerCount(this, 'error') > 0) {
this.emit('error', error);
}
this.socket.destroy(error);
this.socket.destroy();
this._debug.printOutput();
};

Expand Down

0 comments on commit 574b703

Please sign in to comment.