mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 17:12:01 +00:00
Fix importPlugin queue
This commit is contained in:
@@ -79,13 +79,14 @@ class PluginLoader extends Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async importPlugin(name: string) {
|
public async importPlugin(name: string) {
|
||||||
try {
|
|
||||||
if (this.reloadLock) {
|
if (this.reloadLock) {
|
||||||
this.log('Reload currently in progress, adding to queue', name);
|
this.log('Reload currently in progress, adding to queue', name);
|
||||||
this.pluginReloadQueue.push(name);
|
this.pluginReloadQueue.push(name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
this.reloadLock = true;
|
||||||
this.log(`Trying to load ${name}`);
|
this.log(`Trying to load ${name}`);
|
||||||
|
|
||||||
const oldPlugin = this.plugins.find((plugin) => plugin.name === name);
|
const oldPlugin = this.plugins.find((plugin) => plugin.name === name);
|
||||||
|
|||||||
Reference in New Issue
Block a user