Skip to content

The Free Software Media System - Server Backend & API

Don't evaluate twice

David Ullmerb37cc7bfaf51
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index d2f016f7d9..09084249e8 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1395,9 +1395,8 @@ namespace Emby.Server.Implementations
foreach (var assembly in assemblies)
{
Logger.LogDebug("Found API endpoints in plugin {name}", assembly.FullName);
+ yield return assembly;
}
-
- return assemblies;
}
public virtual void LaunchUrl(string url)