Pārlūkot izejas kodu

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

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
BaronGreenback 4 gadi atpakaļ
vecāks
revīzija
9a97933499

+ 1 - 1
Emby.Server.Implementations/Plugins/PluginManager.cs

@@ -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)