We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c76b381 commit 515d2deCopy full SHA for 515d2de
lib/Pool.js
@@ -23,7 +23,9 @@ Pool.prototype.getConnection = function (cb) {
23
if (this._freeConnections.length > 0) {
24
connection = this._freeConnections.shift();
25
26
- return cb(null, connection);
+ process.nextTick(function(){
27
+ return cb(null, connection);
28
+ });
29
}
30
31
if (this.config.connectionLimit === 0 || this._allConnections.length < this.config.connectionLimit) {
0 commit comments