Skip to content

Commit cf92350

Browse files
author
Anton Lakin
committed
fix control flow for second req of pool
1 parent 6308f59 commit cf92350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Pool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Pool.prototype.getConnection = function (cb) {
2525
if (this._freeConnections.length > 0) {
2626
connection = this._freeConnections.shift();
2727

28-
process.nextTick(function(){
28+
return process.nextTick(function(){
2929
return cb(null, connection);
3030
});
3131
}

0 commit comments

Comments
 (0)