Skip to content

The Free Software Media System - Server Backend & API

Hacky fix for a hacky issue

Bond_0093001f21f8d85
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 1c9a4776a0..ce8483a322 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1042,8 +1042,6 @@ namespace Emby.Server.Implementations
CollectionFolder.JsonSerializer = JsonSerializer;
CollectionFolder.ApplicationHost = this;
AuthenticatedAttribute.AuthService = AuthService;
-
- InstallationManager.PluginInstalled += PluginInstalled;
}
private async void PluginInstalled(object sender, GenericEventArgs<PackageVersionInfo> args)
@@ -1085,6 +1083,7 @@ namespace Emby.Server.Implementations
protected void FindParts()
{
InstallationManager = _serviceProvider.GetService<IInstallationManager>();
+ InstallationManager.PluginInstalled += PluginInstalled;
if (!ServerConfigurationManager.Configuration.IsPortAuthorized)
{