1.1.3 -> 1.1.4 第79次更新

This commit is contained in:
Space Time 2024-12-19 00:00:05 +08:00
parent 56185d2750
commit ebe199d048

View File

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