We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d789cd commit a573e0eCopy full SHA for a573e0e
src/cmap/connection_pool.ts
@@ -399,10 +399,10 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
399
this[kConnections].unshift(connection);
400
}
401
402
- const wasConnectionDeleted = this[kCheckedOut].delete(connection);
+ this[kCheckedOut].delete(connection);
403
this.emit(ConnectionPool.CONNECTION_CHECKED_IN, new ConnectionCheckedInEvent(this, connection));
404
405
- if (wasConnectionDeleted && willDestroy) {
+ if (willDestroy) {
406
const reason = connection.closed ? 'error' : poolClosed ? 'poolClosed' : 'stale';
407
this.destroyConnection(connection, reason);
408
0 commit comments