From 765dc09b2433f73ae3ff150951112ee217735138 Mon Sep 17 00:00:00 2001 From: Chester Sim Date: Wed, 18 Dec 2024 01:27:57 +0800 Subject: [PATCH] refactor(sdk): ensure bulkaccountloader fully unsubscribes --- sdk/src/accounts/pollingDriftClientAccountSubscriber.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/src/accounts/pollingDriftClientAccountSubscriber.ts b/sdk/src/accounts/pollingDriftClientAccountSubscriber.ts index 18da8df65..86de3ad65 100644 --- a/sdk/src/accounts/pollingDriftClientAccountSubscriber.ts +++ b/sdk/src/accounts/pollingDriftClientAccountSubscriber.ts @@ -402,6 +402,7 @@ export class PollingDriftClientAccountSubscriber this.accountsToPoll.clear(); this.oraclesToPoll.clear(); this.isSubscribed = false; + this.accountLoader.accountsToLoad = new Map(); } async addSpotMarket(marketIndex: number): Promise {