Skip to content

Commit

Permalink
Fix clear all data
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and josh-signal committed Oct 15, 2021
1 parent 827dd96 commit 0e14467
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ts/sql/Client.ts
Expand Up @@ -343,6 +343,11 @@ async function startInRendererProcess(isTesting = false): Promise<void> {
}

async function goBackToMainProcess(): Promise<void> {
if (state === RendererState.InMain) {
log.info('goBackToMainProcess: Already in the main process');
return;
}

strictAssert(
state === RendererState.InRenderer,
`goBackToMainProcess: expected ${state} to be ${RendererState.InRenderer}`
Expand Down

0 comments on commit 0e14467

Please sign in to comment.