Fixed ignoring callback on client destroy

This commit is contained in:
Vincent Schoettke 2014-09-01 16:01:18 +02:00
parent 7a59607368
commit efdb3bde02

View File

@ -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();