mirror of
https://github.com/mempool/mempool.git
synced 2025-04-09 04:18:27 +02:00
Prevent websocket reconnect on custom root instances
This commit is contained in:
parent
f9101b381b
commit
a517c6c711
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user