Skip to content

Commit

Permalink
After handling "close" event, no need to clear socket during "error" …
Browse files Browse the repository at this point in the history
…as all errors will close the socket
  • Loading branch information
olemstrom committed Mar 27, 2023
1 parent 3a12f97 commit c2d548d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/memjs/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ Server.prototype.sock = function(sasl, go) {

// setup error handler
self._socket.on('error', function(error) {
self.connected = false;
if (self.timeoutSet) {
self._socket.setTimeout(0);
self.timeoutSet = false;
}
self._socket = undefined;
self.error(error);
});

Expand Down

0 comments on commit c2d548d

Please sign in to comment.