mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
fixes a hot load race condition causing saved plugins to be skipped which makes them disappear until the next reload
This commit is contained in:
parent
e8c1932489
commit
df30da55c4
@ -35,8 +35,9 @@ public static partial class PluginFactory
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!await PLUGIN_LOAD_SEMAPHORE.WaitAsync(0, cancellationToken))
|
// Wait for ongoing reloads instead of silently skipping this request.
|
||||||
return;
|
// This caller must return only after its reload has run.
|
||||||
|
await PLUGIN_LOAD_SEMAPHORE.WaitAsync(cancellationToken);
|
||||||
|
|
||||||
var configObjectList = new List<PluginConfigurationObject>();
|
var configObjectList = new List<PluginConfigurationObject>();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user