Skip to content

Commit aa78fa1

Browse files
committed
chore: fix missing handling
1 parent 507cf1c commit aa78fa1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sdam/server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,10 @@ export class Server extends TypedEventEmitter<ServerEvents> {
370370
if (session?.pinnedConnection !== conn) {
371371
if (reauthPromise != null) {
372372
// The reauth promise only exists if it hasn't thrown.
373-
void reauthPromise.finally(() => {
373+
const checkBackIn = () => {
374374
this.pool.checkIn(conn);
375-
});
375+
};
376+
void reauthPromise.then(checkBackIn, checkBackIn);
376377
} else {
377378
this.pool.checkIn(conn);
378379
}

0 commit comments

Comments
 (0)