Skip to content

Commit 9f1d474

Browse files
committed
fix????
1 parent 3b40d9f commit 9f1d474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmap/connection_pool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
492492
private interruptInUseConnections(minGeneration: number) {
493493
for (const connection of this[kCheckedOut]) {
494494
if (connection.generation <= minGeneration) {
495-
this.checkIn(connection);
496495
connection.onError(new PoolClearedOnNetworkError(this));
496+
this.checkIn(connection);
497497
}
498498
}
499499
}

0 commit comments

Comments
 (0)