Skip to content

Commit 4b6da03

Browse files
committed
fix: reconnect flow
1 parent f4b452f commit 4b6da03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/store/pnp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ const actions = {
333333
console.log('Discovering remote peer...')
334334
// its possible that the PNP signaling server connection was disrupted
335335
// while looping in peer discovery mode.
336-
if (state.pnpServiceConnectionStatus === PNP_SERVICE_DISCONNECTED) {
336+
if (state.pnpServiceConnectionStatus !== PNP_SERVICE_CONNECTED) {
337337
console.log('PNP Service disconnected. Reconnecting...')
338338
await dispatch(PNP_SERVICE_RECONNECT)
339339
}

0 commit comments

Comments
 (0)