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:
nilsk 2026-07-10 13:00:39 +02:00
parent e8c1932489
commit df30da55c4
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C

View File

@ -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>();