Fix: BTCPay Server fails to start the first time when installing a new plugin (#5595)

This commit is contained in:
nicolas.dorier 2024-01-17 19:26:22 +09:00
parent f070b22355
commit 0b0a8f8218
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -108,6 +108,7 @@ namespace BTCPayServer.Plugins
if (ExecuteCommands(pluginsFolder, plugins.ToDictionary(plugin => plugin.Identifier, plugin => plugin.Version)))
{
plugins.Clear();
loadedPluginIdentifiers.Clear();
LoadPluginsFromAssemblies(systemAssembly, disabledPlugins, loadedPluginIdentifiers, plugins);
}