Explorar el Código

Merge pull request #1166 from Bond-009/#1162

Fix exception on startup
Joshua M. Boniface hace 6 años
padre
commit
fd86b141e2
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      Emby.Server.Implementations/ApplicationHost.cs

+ 1 - 2
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)
             {