Skip to content

Commit 81c4222

Browse files
committed
fix async fn
1 parent e8c147c commit 81c4222

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
@@ -485,12 +485,12 @@ export default class RedisClient<
485485
return this._self.#dirtyWatch !== undefined
486486
}
487487

488-
#resumeFromMaintenance(newSocket: RedisSocket) {
488+
async #resumeFromMaintenance(newSocket: RedisSocket) {
489489
this._self.#socket.removeAllListeners();
490490
this._self.#socket.destroy();
491491
this._self.#socket = newSocket;
492492
this._self.#pausedForMaintenance = false;
493-
this._self.#initiateSocket();
493+
await this._self.#initiateSocket();
494494
this._self.#maybeScheduleWrite();
495495
}
496496

0 commit comments

Comments
 (0)