mirror of
https://github.com/knex/knex.git
synced 2025-11-02 10:49:39 +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.
|
||||
Client.prototype.destroy = function() {
|
||||
Client.prototype.destroy = function(callback) {
|
||||
var pool = this.pool;
|
||||
var promise = new Promise(function(resolver, rejecter) {
|
||||
if (!pool) resolver();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user