Skip to content

Commit 194fd6a

Browse files
committed
wait for ready before doing anything
1 parent ba4f8b3 commit 194fd6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/compass/src/main/application.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ class CompassApplication {
106106
safeStorage.setUsePlainTextEncryption(true);
107107
}
108108

109-
process.stdout.write('before first app.whenReady\n');
110-
await app.whenReady();
111-
process.stdout.write('after first app.whenReady\n');
112-
113109
process.stdout.write('before setupPreferencesAndUser\n');
114110
const { preferences } = await setupPreferencesAndUser(
115111
globalPreferences,

packages/compass/src/main/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ process.title = app.getName();
2929
void main();
3030

3131
async function main(): Promise<void> {
32+
process.stdout.write('before first app.whenReady\n');
33+
await app.whenReady();
34+
process.stdout.write('after first app.whenReady\n');
35+
3236
const globalPreferences = await parseAndValidateGlobalPreferences();
3337

3438
// These are expected to go away at some point.

0 commit comments

Comments
 (0)