Skip to content

Commit 7b408c0

Browse files
author
Cody Lundquist
committed
Add return statements for promises to fix Bluebird errors.
Fixes: #285
1 parent 7421553 commit 7b408c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pool.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Pool.prototype.getConnection = function() {
9696
}
9797

9898
if (self._slowGrowth === false) {
99-
self._expandBuffer();
99+
return self._expandBuffer();
100100
}
101101

102102
});
@@ -318,7 +318,7 @@ Pool.prototype._expandBuffer = function() {
318318
if ((this._draining === false) &&
319319
(this._pool.getLength() < this.options.buffer+this._localhostToDrain) &&
320320
(this._numConnections < this.options.max+this._localhostToDrain)) {
321-
this.createConnection();
321+
return this.createConnection();
322322
}
323323
}
324324

0 commit comments

Comments
 (0)