Skip to content

Commit

Permalink
refactor(sdk): ensure bulkaccountloader fully unsubscribes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChesterSim committed Dec 17, 2024
1 parent c3ad298 commit 765dc09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/src/accounts/pollingDriftClientAccountSubscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean> {
Expand Down

0 comments on commit 765dc09

Please sign in to comment.