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

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
BaronGreenback 2020-12-18 08:24:00 +00:00 committed by GitHub
parent 3a8d395c9c
commit 2d094bedf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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