Add two more exceptions to NLogGet

Even with cancellation token, it seems that it's not always possible to abort the connection in the clean way, pointless to throw on them since there is nothing else we can do.
This commit is contained in:
JustArchi
2020-12-16 12:11:21 +01:00
parent c140b302eb
commit 79a9f97157

View File

@@ -32,6 +32,7 @@ using System.Threading.Tasks;
using ArchiSteamFarm.IPC.Responses;
using ArchiSteamFarm.Localization;
using ArchiSteamFarm.NLog;
using Microsoft.AspNetCore.Connections;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
@@ -97,7 +98,9 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
closedSemaphore.Dispose();
}
}
} catch (TaskCanceledException e) {
} catch (ConnectionAbortedException e) {
ASF.ArchiLogger.LogGenericDebuggingException(e);
} catch (OperationCanceledException e) {
ASF.ArchiLogger.LogGenericDebuggingException(e);
} catch (WebSocketException e) {
ASF.ArchiLogger.LogGenericDebuggingException(e);