Merge pull request #5187 from mempool/simon/websocket-reconnect-root-instance
Prevent websocket reconnect on custom root instances
This commit is contained in:
		
						commit
						38bf056b6d
					
				| @ -72,7 +72,7 @@ export class WebsocketService { | |||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|       this.stateService.networkChanged$.subscribe((network) => { |       this.stateService.networkChanged$.subscribe((network) => { | ||||||
|         if (network === this.network) { |         if (network === this.network || (this.network === '' && network === this.stateService.env.ROOT_NETWORK)) { | ||||||
|           return; |           return; | ||||||
|         } |         } | ||||||
|         this.network = network === this.stateService.env.ROOT_NETWORK ? '' : network; |         this.network = network === this.stateService.env.ROOT_NETWORK ? '' : network; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user