Skip to content

Commit 91be385

Browse files
committed
Include #stopPolling() call in KeyringController:lock listener
1 parent 9a4ae93 commit 91be385

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/assets-controllers/src/TokenDetectionController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ export class TokenDetectionController extends StaticIntervalPollingController<
251251

252252
this.messagingSystem.subscribe('KeyringController:lock', () => {
253253
this.#isUnlocked = false;
254+
this.#stopPolling();
254255
});
255256

256257
this.messagingSystem.subscribe(

0 commit comments

Comments
 (0)