Mark plugin failure on DI Loop.

This commit is contained in:
Greenback
2020-12-14 23:39:47 +00:00
parent d2d45295fc
commit 494ace7984
2 changed files with 8 additions and 2 deletions

View File

@@ -406,6 +406,11 @@ namespace Emby.Server.Implementations
Logger.LogError("Called from: {stack}", entry.FullName);
}
if (type is IPlugin)
{
_pluginManager.FailPlugin(type.Assembly);
}
throw new ExternalException("DI Loop detected.");
}