diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-05-28 14:33:54 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-05-28 14:33:54 +0200 |
| commit | 0bc06014427e36a770adeda66392d08147658ea8 (patch) | |
| tree | 0a0e5bd77f9f6fec947f64743c316d11e1dde7e7 /Emby.Server.Implementations/Plugins/PluginManager.cs | |
| parent | b12f509de3f8a55f6b3bfc74cfa66a39fd10d24b (diff) | |
Fix some warnings
Diffstat (limited to 'Emby.Server.Implementations/Plugins/PluginManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Plugins/PluginManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs index 48281b75f..16a2bd615 100644 --- a/Emby.Server.Implementations/Plugins/PluginManager.cs +++ b/Emby.Server.Implementations/Plugins/PluginManager.cs @@ -455,7 +455,8 @@ namespace Emby.Server.Implementations.Plugins try { _logger.LogDebug("Creating instance of {Type}", type); - var instance = (IPlugin)ActivatorUtilities.CreateInstance(_appHost.ServiceProvider, type); + // _appHost.ServiceProvider is already assigned when we create the plugins + var instance = (IPlugin)ActivatorUtilities.CreateInstance(_appHost.ServiceProvider!, type); if (plugin == null) { // Create a dummy record for the providers. |
