Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
8e04e6c837
commit
9a97933499
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user