Skip to content

Commit a9c76d0

Browse files
fix failures
1 parent ab880fd commit a9c76d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sdam/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ export class Server extends TypedEventEmitter<ServerEvents> {
303303
}
304304
}
305305

306+
let reauthPromise: Promise<void> | null = null;
306307
const cleanup = () => {
307308
this.decrementOperationCount();
308309
if (session?.pinnedConnection !== conn) {
@@ -347,8 +348,6 @@ export class Server extends TypedEventEmitter<ServerEvents> {
347348
options.omitMaxTimeMS = true;
348349
}
349350

350-
let reauthPromise: Promise<void> | null = null;
351-
352351
try {
353352
try {
354353
const res = await conn.command(ns, cmd, options, operation.SERVER_COMMAND_RESPONSE_TYPE);

0 commit comments

Comments
 (0)