aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-04-12 20:49:54 -0400
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-04-12 20:49:54 -0400
commit7f38ef4c3cc632d625c0ede16ad53507edf476dd (patch)
tree538cca6d32f16aa5a9f3a7fb467eb6c0f08525a6
parent16549dead90b6830a0ad5821f64346c6d6435f35 (diff)
Fix compilation error in HttpListenerHost
-rw-r--r--Emby.Server.Implementations/HttpServer/HttpListenerHost.cs15
1 files changed, 4 insertions, 11 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
index 08ee50e71..dbcfbf725 100644
--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
@@ -517,28 +517,21 @@ namespace Emby.Server.Implementations.HttpServer
}
else
{
- await ErrorHandler(new FileNotFoundException(), httpReq, false).ConfigureAwait(false);
+ await ErrorHandler(new FileNotFoundException(), httpReq, false, urlToLog).ConfigureAwait(false);
}
}
catch (Exception ex) when (ex is SocketException || ex is IOException || ex is OperationCanceledException)
{
- await ErrorHandler(ex, httpReq, false).ConfigureAwait(false);
+ await ErrorHandler(ex, httpReq, false, urlToLog).ConfigureAwait(false);
}
catch (SecurityException ex)
{
- await ErrorHandler(ex, httpReq, false).ConfigureAwait(false);
+ await ErrorHandler(ex, httpReq, false, urlToLog).ConfigureAwait(false);
}
catch (Exception ex)
{
var logException = !string.Equals(ex.GetType().Name, "SocketException", StringComparison.OrdinalIgnoreCase);
-
- bool ignoreStackTrace =
- ex is SocketException
- || ex is IOException
- || ex is OperationCanceledException
- || ex is SecurityException
- || ex is FileNotFoundException;
- await ErrorHandler(ex, httpReq, !ignoreStackTrace, urlToLog).ConfigureAwait(false);
+ await ErrorHandler(ex, httpReq, logException, urlToLog).ConfigureAwait(false);
}
finally
{