Jelajahi Sumber

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

Co-authored-by: Cody Robibero <cody@robibe.ro>
BaronGreenback 4 tahun lalu
induk
melakukan
2d094bedf5
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Emby.Server.Implementations/Plugins/PluginManager.cs

+ 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.