From a74a86b3860ae312925bf5f584a8cb973ac41e75 Mon Sep 17 00:00:00 2001 From: Andrew Skubarenko Date: Thu, 22 Feb 2024 03:04:09 +0300 Subject: [PATCH] Clear subscribedAddresses when the unsubscribeFromAllSubscriptions is called --- .../dipDupBridgeDataProvider/dipDupBridgeDataProvider.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bridgeDataProviders/dipDupBridgeDataProvider/dipDupBridgeDataProvider.ts b/src/bridgeDataProviders/dipDupBridgeDataProvider/dipDupBridgeDataProvider.ts index bfe45cc..0862671 100644 --- a/src/bridgeDataProviders/dipDupBridgeDataProvider/dipDupBridgeDataProvider.ts +++ b/src/bridgeDataProviders/dipDupBridgeDataProvider/dipDupBridgeDataProvider.ts @@ -162,6 +162,8 @@ export class DipDupBridgeDataProvider extends RemoteService implements Transfers unsubscribeFromAllSubscriptions(): void { this.dipDupWebSocketClient.unsubscribeFromAllSubscriptions(); + this.subscribedAddresses.clear(); + this.currentTokenTransfersSubscription = undefined; } async getBalance(accountAddress: string, token: NonNativeEtherlinkToken): Promise {