Skip to content

Commit

Permalink
Fix infinite loop in error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
apirila authored Oct 5, 2018
1 parent 58f301a commit c953503
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 c953503

Please sign in to comment.