Skip to content

Commit d15e8ef

Browse files
committed
Merge pull request 3rd-Eden#11 from MakerAndrew/master
Fix for 'callback was already called issue': timeout listener was not being removed
2 parents 7baf744 + 640db8b commit d15e8ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ Manager.prototype.allocate = function allocate(fn) {
157157
function either(err) {
158158
this.removeListener('error', either);
159159
this.removeListener('connect', either);
160+
this.removeListener('timeout', timeout);
160161

161162
// Add to the pool
162163
if (!err) self.pool.push(this);

0 commit comments

Comments
 (0)