From e2f205b03257bbcedd7dbd9071c49d87cbc05b06 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Mon, 22 Feb 2021 20:01:02 +1030 Subject: [PATCH] feat: add "ready" event to api-manager --- app/core/api-manager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/core/api-manager.ts b/app/core/api-manager.ts index 8862a9cf1..27bc4e2ec 100644 --- a/app/core/api-manager.ts +++ b/app/core/api-manager.ts @@ -86,6 +86,9 @@ export class ApiManager extends EventEmitter { log.debug('Loading MyServers API key...'); this.checkKey(configPath, true).then(() => { log.debug('Loaded MyServers API key!'); + + // API manager is ready + this.emit('ready', undefined); }).catch(error => { log.debug('Failing loading MyServers API key with %s', error); });