From ebe199d048f53f469c440326581410788721893a Mon Sep 17 00:00:00 2001 From: Space Time Date: Thu, 19 Dec 2024 00:00:05 +0800 Subject: [PATCH] =?UTF-8?q?1.1.3=20->=201.1.4=20=E7=AC=AC79=E6=AC=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Wins/MainWin.xaml.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Wins/MainWin.xaml.cs b/Wins/MainWin.xaml.cs index 9dba13b..e43e772 100644 --- a/Wins/MainWin.xaml.cs +++ b/Wins/MainWin.xaml.cs @@ -280,9 +280,9 @@ public partial class MainWin : Window break; } - catch (HttpRequestException ex) when (ex.InnerException is SocketException innerEx) + catch (HttpRequestException ex) { - if (innerEx.SocketErrorCode != SocketError.ConnectionRefused) + if (ex.InnerException is SocketException innerEx && innerEx.SocketErrorCode != SocketError.ConnectionRefused) break; } @@ -356,9 +356,9 @@ public partial class MainWin : Window break; } - catch (HttpRequestException ex) when (ex.InnerException is SocketException innerEx) + catch (HttpRequestException ex) { - if (innerEx.SocketErrorCode != SocketError.ConnectionRefused) + if (ex.InnerException is SocketException innerEx && innerEx.SocketErrorCode != SocketError.ConnectionRefused) break; }