Skip to content

Commit 1060c3b

Browse files
authored
clears onDisconnected event handler when ending session (#5573)
the handler that we add to the MultisigClient.onDisconnected event assumes that the client will try to reconnect and rejoin a session after a disconnect. however, if the session is ended, the client will not try to reconnect. this results in the CLI displaying an endless action stating that it is waiting to connect after the session ends clears the handler before stopping the client so that the sessionManager won't wait for messages confirming server reconnection and session rejoin
1 parent d0336f0 commit 1060c3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ironfish-cli/src/multisigBroker/sessionManagers/sessionManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export abstract class MultisigClientSessionManager extends MultisigSessionManage
137137
}
138138

139139
endSession(): void {
140+
this.client.onDisconnected.clear()
140141
this.client.stop()
141142
}
142143

0 commit comments

Comments
 (0)