Skip to content

Commit 53e40e4

Browse files
committed
chore: fix missing handling
1 parent c12a4c2 commit 53e40e4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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)