mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-12 12:32:10 +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;
|
||||
}
|
||||
|
||||
if (!await PLUGIN_LOAD_SEMAPHORE.WaitAsync(0, cancellationToken))
|
||||
return;
|
||||
// Wait for ongoing reloads instead of silently skipping this request.
|
||||
// This caller must return only after its reload has run.
|
||||
await PLUGIN_LOAD_SEMAPHORE.WaitAsync(cancellationToken);
|
||||
|
||||
var configObjectList = new List<PluginConfigurationObject>();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user