mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04: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…
x
Reference in New Issue
Block a user