fixes #162 - Random MediaBrowser3 Crash

This commit is contained in:
Luke Pulverenti 2013-04-18 14:30:32 -04:00
parent 8ec2392590
commit 48d60b2f6a

View File

@ -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>