Fixes #127 - socket is closed issue with pools
This commit is contained in:
parent
bd7c3ecd12
commit
0bd66caae9
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue