From 92281512f575a1eba70fb2f39cd9359f268c5f7f Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 4 Feb 2018 09:54:49 +0100 Subject: [PATCH] Catch more IPC I/O exceptions --- ArchiSteamFarm/IPC.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/IPC.cs b/ArchiSteamFarm/IPC.cs index ebe437659..ef10c7b38 100644 --- a/ArchiSteamFarm/IPC.cs +++ b/ArchiSteamFarm/IPC.cs @@ -763,7 +763,7 @@ namespace ArchiSteamFarm { response.ContentLength64 = content.Length; await response.OutputStream.WriteAsync(content, 0, content.Length).ConfigureAwait(false); - } catch (ObjectDisposedException e) { + } catch (InvalidOperationException e) { ASF.ArchiLogger.LogGenericDebuggingException(e); } } @@ -781,7 +781,7 @@ namespace ArchiSteamFarm { await ResponseBase(request, response, content).ConfigureAwait(false); } catch (FileNotFoundException) { await ResponseStatusCode(request, response, HttpStatusCode.NotFound).ConfigureAwait(false); - } catch (ObjectDisposedException e) { + } catch (InvalidOperationException e) { ASF.ArchiLogger.LogGenericDebuggingException(e); } catch (Exception e) { ASF.ArchiLogger.LogGenericException(e); @@ -832,7 +832,7 @@ namespace ArchiSteamFarm { byte[] content = response.ContentEncoding.GetBytes(text + Environment.NewLine); await ResponseBase(request, response, content, statusCode).ConfigureAwait(false); - } catch (ObjectDisposedException e) { + } catch (InvalidOperationException e) { ASF.ArchiLogger.LogGenericDebuggingException(e); } }