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

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
BaronGreenback 2020-12-18 21:56:54 +00:00 committed by GitHub
parent 5c3ebb63e6
commit a293024efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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