diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-18 14:30:32 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-18 14:30:32 -0400 |
| commit | 48d60b2f6ad2cf88bd5336025446b005d24fe4ee (patch) | |
| tree | bc232d387f85e5d5cc5d3ff2f0163e4033857394 | |
| parent | 8ec2392590d378a0c316e9be4c54c44721f227d1 (diff) | |
fixes #162 - Random MediaBrowser3 Crash
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpServer.cs | 12 |
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> |
