The Free Software Media System - Server Backend & API
fixes #162 - Random MediaBrowser3 Crash
Luke Pulverenti48d60b2f6ad2
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.csindex 527de6ae4a..4f93f4b6e4 100644--- a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs@@ -296,7 +296,17 @@ namespace MediaBrowser.Server.Implementations.HttpServerRaiseReceiveWebRequest(context);- await Task.Run(() => ProcessRequest(context)).ConfigureAwait(false);+ await Task.Run(() =>+ {+ try+ {+ ProcessRequest(context);+ }+ catch (Exception ex)+ {+ _logger.ErrorException("ProcessRequest failure", ex);+ }+ }).ConfigureAwait(false);}/// <summary>