mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Added referenced assembly failure detection, and DI failure protection.
This commit is contained in:
@@ -111,6 +111,10 @@ namespace Emby.Server.Implementations.Plugins
|
||||
try
|
||||
{
|
||||
assembly = Assembly.LoadFrom(file);
|
||||
|
||||
// This force loads all reference dll's that the plugin uses in the try..catch block.
|
||||
// Removing this will cause JF to bomb out if referenced dll's cause issues.
|
||||
assembly.GetExportedTypes();
|
||||
}
|
||||
catch (FileLoadException ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user