mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-06 05:43:03 +02:00
Update Emby.Server.Implementations/Plugins/PluginManager.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
66d98cb8e4
commit
4ba4eefeeb
|
@ -232,9 +232,9 @@ namespace Emby.Server.Implementations.Plugins
|
|||
var plugins = _plugins.Where(p => p.Id.Equals(id));
|
||||
|
||||
plugin = plugins.FirstOrDefault(p => p.Instance != null);
|
||||
if (plugin == null)
|
||||
if (plugin == null && plugins.Length > 0)
|
||||
{
|
||||
plugin = plugins.OrderByDescending(p => p.Version).FirstOrDefault();
|
||||
plugin = plugins.OrderByDescending(p => p.Version)[0];
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue