aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Mono/Program.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-04-27 14:11:56 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-04-27 14:11:56 -0400
commitffb935700cc2d9ac47a81e43cf2187ff8c78957a (patch)
treebf3d2d82b5d4637b8c1b78699634c0d7b12cff62 /MediaBrowser.Server.Mono/Program.cs
parentf13696868fd87924441a732e703350b56ae6ad7b (diff)
update mono unhandled exception handler
Diffstat (limited to 'MediaBrowser.Server.Mono/Program.cs')
-rw-r--r--MediaBrowser.Server.Mono/Program.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Mono/Program.cs b/MediaBrowser.Server.Mono/Program.cs
index 66851f7e9..dcd2dcaa6 100644
--- a/MediaBrowser.Server.Mono/Program.cs
+++ b/MediaBrowser.Server.Mono/Program.cs
@@ -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));
+ }
}
}