mirror of
https://github.com/knex/knex.git
synced 2025-11-14 17:13:18 +00:00
Fixed ignoring callback on client destroy
This commit is contained in:
parent
7a59607368
commit
efdb3bde02
@ -48,7 +48,7 @@ Client.prototype.releaseConnection = function(connection) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Destroy the current connection pool for the client.
|
// Destroy the current connection pool for the client.
|
||||||
Client.prototype.destroy = function() {
|
Client.prototype.destroy = function(callback) {
|
||||||
var pool = this.pool;
|
var pool = this.pool;
|
||||||
var promise = new Promise(function(resolver, rejecter) {
|
var promise = new Promise(function(resolver, rejecter) {
|
||||||
if (!pool) resolver();
|
if (!pool) resolver();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user