Skip to content

Commit ca65d07

Browse files
committed
Fix multi-tab error appearing while one tab shows disconnect error
1 parent 1269dc0 commit ca65d07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/metastream-app/src/containers/LobbyPage.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ export class _LobbyPage extends Component<PrivateProps, IState> {
9090

9191
const isMultiTab = await this.tabObserver.getIsMultiTab()
9292
if (isMultiTab) {
93+
// Destroy while on disconnected screen
94+
this.tabObserver.destroy()
95+
this.tabObserver = undefined
96+
9397
this.disconnect(NetworkDisconnectReason.MultiTab)
9498
return true
9599
}

0 commit comments

Comments
 (0)