File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -485,12 +485,12 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
485
485
for ( const connection of this . checkedOut ) {
486
486
if ( connection . generation <= minGeneration ) {
487
487
connection . onError ( new PoolClearedOnNetworkError ( this ) ) ;
488
- this . checkIn ( connection ) ;
489
488
}
490
489
}
491
490
}
492
491
493
- closeCheckedOutConnections ( ) {
492
+ /** For MongoClient.close() procedures */
493
+ public closeCheckedOutConnections ( ) {
494
494
for ( const conn of this . checkedOut ) {
495
495
conn . onError ( new MongoClientClosedError ( ) ) ;
496
496
}
Original file line number Diff line number Diff line change @@ -1037,8 +1037,8 @@ export class MongoClientClosedError extends MongoAPIError {
1037
1037
*
1038
1038
* @public
1039
1039
**/
1040
- constructor ( message = 'Operation interrupted because client was closed' ) {
1041
- super ( message ) ;
1040
+ constructor ( ) {
1041
+ super ( 'Operation interrupted because client was closed' ) ;
1042
1042
}
1043
1043
1044
1044
override get name ( ) : string {
You can’t perform that action at this time.
0 commit comments