Merge pull request #5187 from mempool/simon/websocket-reconnect-root-instance

Prevent websocket reconnect on custom root instances
This commit is contained in:
softsimon 2024-06-24 17:15:35 +09:00 committed by GitHub
commit 38bf056b6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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