Explorar o código

Don't evaluate twice

David Ullmer %!s(int64=4) %!d(string=hai) anos
pai
achega
b37cc7bfaf
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      Emby.Server.Implementations/ApplicationHost.cs

+ 1 - 2
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)