aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
index 527de6ae4..4f93f4b6e 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs
@@ -296,7 +296,17 @@ namespace MediaBrowser.Server.Implementations.HttpServer
RaiseReceiveWebRequest(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>