Skip to content

Commit 6596e57

Browse files
committed
fix ordering
1 parent 01901a2 commit 6596e57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/client/lib/client/enterprise-maintenance-manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ export default class EnterpriseMaintenanceManager extends EventEmitter {
9696
port: number,
9797
): Promise<void> => {
9898
// 1 [EVENT] MOVING PN received
99+
this.#onMigrating();
100+
99101
// 2 [ACTION] Pause writing
100102
dbgMaintenance('Pausing writing of new commands to old socket');
101103
this.emit(MAINTENANCE_EVENTS.PAUSE_WRITING);
102-
this.#onMigrating();
103104

104105
const newSocket = new RedisSocket({
105106
...this.#options.socket,

0 commit comments

Comments
 (0)