Browse Source

Don't evaluate twice

David Ullmer 4 năm trước cách đây
mục cha
commit
b37cc7bfaf
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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)