Fixes #127 - socket is closed issue with pools

This commit is contained in:
José F. Romaniello 2013-04-10 10:17:23 -03:00
parent bd7c3ecd12
commit 0bd66caae9
1 changed files with 3 additions and 0 deletions

View File

@ -691,6 +691,9 @@ Client.prototype.unbind = function unbind(callback) {
return callback();
var req = new UnbindRequest();
if (this.socket.listeners('error').length === 0) {
this.socket.once('error', function(){});
}
return this._send(req, 'unbind', null, callback);
};