Fix clear all data

This commit is contained in:
Josh Perez 2021-10-15 14:43:13 -04:00 committed by GitHub
parent d4e2911450
commit 9dc5214db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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}`