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

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
BaronGreenback 2020-12-23 10:29:21 +00:00 committed by GitHub
parent 8e04e6c837
commit 9a97933499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,7 @@ namespace Emby.Server.Implementations.Plugins
if (version == null) if (version == null)
{ {
// If no version is given, return the current instance. // If no version is given, return the current instance.
var plugins = _plugins.Where(p => p.Id.Equals(id)); var plugins = _plugins.Where(p => p.Id.Equals(id)).ToList();
plugin = plugins.FirstOrDefault(p => p.Instance != null); plugin = plugins.FirstOrDefault(p => p.Instance != null);
if (plugin == null && plugins.Length > 0) if (plugin == null && plugins.Length > 0)