Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit b2dd5fb

Browse files
committed
rollback setLocked change
1 parent 77870a1 commit b2dd5fb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/KeyringController.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,14 @@ class KeyringController extends EventEmitter {
167167
async setLocked(): Promise<KeyringControllerState> {
168168
delete this.password;
169169

170-
// remove keyrings
171-
await this.#clearKeyrings();
172-
173170
// set locked
174171
this.memStore.putState({
175172
isUnlocked: false,
176173
keyrings: [],
177174
});
178175

176+
// remove keyrings
177+
await this.#clearKeyrings();
179178
this.emit('lock');
180179
return this.fullUpdate();
181180
}

0 commit comments

Comments
 (0)