wait a bit before loading plugins to avoid race conditions

This commit is contained in:
AAGaming
2024-07-28 18:46:37 -04:00
parent 62293d2316
commit ff856c7148
+1
View File
@@ -166,6 +166,7 @@ class PluginLoader extends Logger {
this.initPluginBackendAPI(); this.initPluginBackendAPI();
Promise.all([this.getUserInfo(), this.updateVersion()]) Promise.all([this.getUserInfo(), this.updateVersion()])
.then(() => sleep(500))
.then(() => this.loadPlugins()) .then(() => this.loadPlugins())
.then(() => this.checkPluginUpdates()) .then(() => this.checkPluginUpdates())
.then(() => this.log('Initialized')); .then(() => this.log('Initialized'));