Permalink
Browse files

Added missing self reference

  • Loading branch information...
1 parent 65a330e commit 30d24e0d98df74b33bf424e5edd573bbd831d583 @NatalieWolfe NatalieWolfe committed Dec 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Pool.js
View
@@ -24,6 +24,7 @@ Pool.prototype.getConnection = function(cb) {
this._freeConnections.shift();
cb(null, connection);
} else if (this.config.connectionLimit == 0 || this._allConnections.length < this.config.connectionLimit) {
+ var self = this;
var connection = this._createConnection();
this._allConnections.push(connection);
connection.connect(function(err) {

0 comments on commit 30d24e0

Please sign in to comment.