Skip to content

Commit

Permalink
[fix] Wtf, I was adding broken connections in to the pool?
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Jul 23, 2013
1 parent 5d93b46 commit c3a1dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Manager.prototype.allocate = function allocate(fn) {
this.removeListener('connect', either);

// Add to the pool
self.pool.push(this);
if (!err) self.pool.push(this);
self.pending--;

fn(err, this);
Expand Down

0 comments on commit c3a1dad

Please sign in to comment.