From 9c159d5d24cdc083bc4b334740baded5ea915524 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Wed, 4 Sep 2019 13:11:10 +0200 Subject: [PATCH] Do not wait for the scheduler on startup --- lib/manager/man.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/manager/man.ts b/lib/manager/man.ts index 6e8a013..f73a103 100644 --- a/lib/manager/man.ts +++ b/lib/manager/man.ts @@ -93,7 +93,10 @@ export class Manager extends EventEmitter { } this.items.push(rv); }); - await this.resetScheduler(); + + // Do not wait for the scheduler + this.resetScheduler(); + this.emit("inited"); setTimeout(() => this.checkMissing(), MISSING_TIMEOUT); runtime.onUpdateAvailable.addListener(() => {