|
|
@ -257,10 +257,15 @@ namespace MediaBrowser.Server.Mono
|
|
|
|
new UnhandledExceptionWriter(_appHost.ServerConfigurationManager.ApplicationPaths, _logger, _appHost.LogManager, FileSystem, new ConsoleLogger()).Log(exception);
|
|
|
|
new UnhandledExceptionWriter(_appHost.ServerConfigurationManager.ApplicationPaths, _logger, _appHost.LogManager, FileSystem, new ConsoleLogger()).Log(exception);
|
|
|
|
|
|
|
|
|
|
|
|
if (!Debugger.IsAttached)
|
|
|
|
if (!Debugger.IsAttached)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var message = LogHelper.GetLogMessage(exception).ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (message.IndexOf("InotifyWatcher", StringComparison.OrdinalIgnoreCase) == -1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Environment.Exit(System.Runtime.InteropServices.Marshal.GetHRForException(exception));
|
|
|
|
Environment.Exit(System.Runtime.InteropServices.Marshal.GetHRForException(exception));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static void Shutdown()
|
|
|
|
public static void Shutdown()
|
|
|
|
{
|
|
|
|
{
|
|
|
|