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

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/4709/head
BaronGreenback 4 years ago committed by GitHub
parent 3a8d395c9c
commit 2d094bedf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -425,7 +425,7 @@ namespace Emby.Server.Implementations
try try
{ {
_logger.LogDebug("Creating instance of {Type}", type); _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) if (plugin == null)
{ {
// Create a dummy record for the providers. // Create a dummy record for the providers.

Loading…
Cancel
Save