mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
update mono unhandled exception handler
This commit is contained in:
@@ -258,7 +258,12 @@ namespace MediaBrowser.Server.Mono
|
||||
|
||||
if (!Debugger.IsAttached)
|
||||
{
|
||||
Environment.Exit(System.Runtime.InteropServices.Marshal.GetHRForException(exception));
|
||||
var message = LogHelper.GetLogMessage(exception).ToString();
|
||||
|
||||
if (message.IndexOf("InotifyWatcher", StringComparison.OrdinalIgnoreCase) == -1)
|
||||
{
|
||||
Environment.Exit(System.Runtime.InteropServices.Marshal.GetHRForException(exception));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user