Update Fix

This commit is contained in:
2026-03-15 12:30:40 +01:00
parent 311ba5e7f3
commit 50be8e25f3
176 changed files with 4075 additions and 3013 deletions

View File

@@ -29,10 +29,14 @@ class BasePoolConnection extends BaseConnection {
this._pool.releaseConnection(this);
}
end() {
[Symbol.dispose]() {
this.release();
}
end(callback) {
if (this.config.gracefulEnd) {
this._removeFromPool();
super.end();
super.end(callback);
return;
}
@@ -46,6 +50,9 @@ class BasePoolConnection extends BaseConnection {
this.emit('warn', err);
console.warn(err.message);
this.release();
if (typeof callback === 'function') {
callback();
}
}
destroy() {