diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-03-28 22:45:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-28 22:45:34 -0400 |
| commit | fd86b141e2c3c1f33e6ed73c9a0eccaf0c6d6601 (patch) | |
| tree | c69135ec73413fa012252a36bd2ee7e9e3d0718a | |
| parent | 2dbc1153e8b96d562a5e4489e6fe883e8711839f (diff) | |
| parent | 3001f21f8d8592586add36661a0be0679e427d63 (diff) | |
Merge pull request #1166 from Bond-009/#1162
Fix exception on startup
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 1c9a4776a..ce8483a32 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) { |
