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 507cf1c commit aa78fa1Copy full SHA for aa78fa1
src/sdam/server.ts
@@ -370,9 +370,10 @@ export class Server extends TypedEventEmitter<ServerEvents> {
370
if (session?.pinnedConnection !== conn) {
371
if (reauthPromise != null) {
372
// The reauth promise only exists if it hasn't thrown.
373
- void reauthPromise.finally(() => {
+ const checkBackIn = () => {
374
this.pool.checkIn(conn);
375
- });
+ };
376
+ void reauthPromise.then(checkBackIn, checkBackIn);
377
} else {
378
379
}
0 commit comments