Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
akopachov committed Nov 15, 2023
1 parent af559b5 commit d6ca4a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/totp-client/totp-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ export class TotpAppClient extends EventEmitter {
}

async #executeCommand(command: string, options: Partial<ExecuteCommandOptions> = {}) {
this.emit(TotpClientEvents.CommandExecuting, this);
let result: string | null;
try {
await this.#executionSemaphore.acquire();
this.emit(TotpClientEvents.CommandExecuting, this);
result = await this.#_executeCommand(command, options);
} finally {
this.#executionSemaphore.release();
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
SharedTotpAppClient.on(TotpClientEvents.Connecting, () => {
GlobalPreloader.setDescription('Connecting to Flipper Zero device');
GlobalPreloader.setDescription('Waiting for Flipper Zero device');
});
SharedTotpAppClient.on(TotpClientEvents.Connected, () => {
Expand Down

0 comments on commit d6ca4a8

Please sign in to comment.