Skip to content

Commit 33f2714

Browse files
committed
fix async fn
1 parent fb0e62c commit 33f2714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client/lib/client/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,12 @@ export default class RedisClient<
461461
return this._self.#dirtyWatch !== undefined
462462
}
463463

464-
#resumeFromMaintenance(newSocket: RedisSocket) {
464+
async #resumeFromMaintenance(newSocket: RedisSocket) {
465465
this._self.#socket.removeAllListeners();
466466
this._self.#socket.destroy();
467467
this._self.#socket = newSocket;
468468
this._self.#pausedForMaintenance = false;
469-
this._self.#initiateSocket();
469+
await this._self.#initiateSocket();
470470
this._self.#maybeScheduleWrite();
471471
}
472472

0 commit comments

Comments
 (0)