From a4be10ce13af5dc41cd43882903ecdd9acd82ddb Mon Sep 17 00:00:00 2001 From: Brian White Date: Thu, 20 Mar 2014 09:54:00 -0400 Subject: [PATCH] Connection: once->on in case of multiple socket errors --- lib/Connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Connection.js b/lib/Connection.js index 4461764..57ccee8 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -136,7 +136,7 @@ Connection.prototype.connect = function() { err.source = 'socket'; self.emit('error', err); }; - this._sock.once('error', this._onError); + this._sock.on('error', this._onError); socket.once('close', function(had_err) { clearTimeout(self._tmrConn);