update mono unhandled exception handler

This commit is contained in:
Luke Pulverenti
2017-04-27 14:11:56 -04:00
parent f13696868f
commit ffb935700c
3 changed files with 12 additions and 3 deletions

View File

@@ -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));
}
}
}