Skip to content

The Free Software Media System - Server Backend & API

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

BaronGreenback9a97933499d4
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs
index 2609f6fca6..dac3100af8 100644
--- a/Emby.Server.Implementations/Plugins/PluginManager.cs
+++ b/Emby.Server.Implementations/Plugins/PluginManager.cs
@@ -229,7 +229,7 @@ namespace Emby.Server.Implementations.Plugins
if (version == null)
{
// 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);
if (plugin == null && plugins.Length > 0)