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

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/4709/head
BaronGreenback 4 years ago committed by GitHub
parent 5c3ebb63e6
commit a293024efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.

Loading…
Cancel
Save