summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2024-07-28 18:46:37 -0400
committerAAGaming <aagaming@riseup.net>2024-08-03 14:04:21 -0400
commitff856c71486f534c87ef2fb340ce8c75e0c07b72 (patch)
tree27d63ff155e561409133f2b45be262f357feecaf
parent62293d23165d43b93f1b14a748286d9fb389522b (diff)
downloaddecky-loader-ff856c71486f534c87ef2fb340ce8c75e0c07b72.tar.gz
decky-loader-ff856c71486f534c87ef2fb340ce8c75e0c07b72.zip
wait a bit before loading plugins to avoid race conditions
-rw-r--r--frontend/src/plugin-loader.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index e7179e0a..2a46ca1e 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -166,6 +166,7 @@ class PluginLoader extends Logger {
this.initPluginBackendAPI();
Promise.all([this.getUserInfo(), this.updateVersion()])
+ .then(() => sleep(500))
.then(() => this.loadPlugins())
.then(() => this.checkPluginUpdates())
.then(() => this.log('Initialized'));