Przeglądaj źródła

Update Emby.Server.Implementations/Plugins/PluginManager.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
BaronGreenback 4 lat temu
rodzic
commit
2d094bedf5

+ 1 - 1
Emby.Server.Implementations/Plugins/PluginManager.cs

@@ -425,7 +425,7 @@ namespace Emby.Server.Implementations
             try
             {
                 _logger.LogDebug("Creating instance of {Type}", type);
-                var instance = ActivatorUtilities.CreateInstance(_appHost.ServiceProvider, type);
+                var instance = (IPlugin)ActivatorUtilities.CreateInstance(_appHost.ServiceProvider, type);
                 if (plugin == null)
                 {
                     // Create a dummy record for the providers.