Prevent websocket reconnect on custom root instances

This commit is contained in:
softsimon 2024-06-22 14:55:59 +09:00
parent f9101b381b
commit a517c6c711
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -72,7 +72,7 @@ export class WebsocketService {
}
this.stateService.networkChanged$.subscribe((network) => {
if (network === this.network) {
if (network === this.network || network === this.stateService.env.ROOT_NETWORK) {
return;
}
this.network = network === this.stateService.env.ROOT_NETWORK ? '' : network;