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 f9a9f77 commit f0ab110Copy full SHA for f0ab110
src/cmap/connection.ts
@@ -714,8 +714,8 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
714
let err = error;
715
if (TimeoutError.is(error)) {
716
err = new MongoOperationTimeoutError('Timed out at socket write');
717
+ this.cleanup(err);
718
}
- this.cleanup(error);
719
throw err;
720
721
@@ -756,7 +756,6 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
756
this.onError(error);
757
throw error;
758
759
- this.cleanup(err);
760
761
} finally {
762
this.dataEvents = null;
0 commit comments