diff options
| author | Greenback <jimcartlidge@yahoo.co.uk> | 2020-12-14 23:39:47 +0000 |
|---|---|---|
| committer | Greenback <jimcartlidge@yahoo.co.uk> | 2020-12-14 23:39:47 +0000 |
| commit | 494ace7984edab77df7f9da30e411d8d3d617036 (patch) | |
| tree | 8de4149f9a3935abd9670e704b43587c715981e2 /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | d2d45295fc2a948f9a6945f56197097d0f2ef9d6 (diff) | |
Mark plugin failure on DI Loop.
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index f88c6c620..8df1ec300 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -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."); } |
