mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
catch errors in entry point
This commit is contained in:
parent
d32c71ca39
commit
8380a92806
@ -199,7 +199,17 @@ namespace MediaBrowser.ServerApplication
|
||||
|
||||
Logger.Info("Core startup complete");
|
||||
|
||||
Parallel.ForEach(GetExports<IServerEntryPoint>(), entryPoint => entryPoint.Run());
|
||||
Parallel.ForEach(GetExports<IServerEntryPoint>(), entryPoint =>
|
||||
{
|
||||
try
|
||||
{
|
||||
entryPoint.Run();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.ErrorException("Error in {0}", ex, entryPoint.GetType().Name);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user