2
0
Эх сурвалжийг харах

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

Co-authored-by: Cody Robibero <cody@robibe.ro>
BaronGreenback 4 жил өмнө
parent
commit
a293024efd

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

@@ -280,7 +280,7 @@ namespace Emby.Server.Implementations.Plugins
                 throw new ArgumentNullException(nameof(assembly));
             }
 
-            var plugin = _plugins.Where(p => p.DllFiles.Contains(assembly.Location)).FirstOrDefault();
+            var plugin = _plugins.FirstOrDefault(p => p.DllFiles.Contains(assembly.Location));
             if (plugin == null)
             {
                 // A plugin's assembly didn't cause this issue, so ignore it.