Merge pull request #84 from kusor/master

Fix for issue #83
This commit is contained in:
Mark Cavage 2012-07-13 08:13:12 -07:00
commit cb1fa32e64
1 changed files with 2 additions and 2 deletions

View File

@ -76,12 +76,12 @@ function createPool(options) {
return callback(err); return callback(err);
res.on('error', function (e) { res.on('error', function (e) {
removeAllListeners('end'); client.removeAllListeners('end');
callback(e); callback(e);
}); });
res.on('end', function () { res.on('end', function () {
removeAllListeners('error'); client.removeAllListeners('error');
callback(null); callback(null);
}); });
}); });