Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
wj8400684 committed May 2, 2024
1 parent d714a5b commit 4b491b9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/SuperSocket.Quic.Connection/QuicPipeConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ protected override bool IsIgnorableException(Exception e)
if (base.IsIgnorableException(e))
return true;

if (e is SocketException se)
switch (e)
{
if (se.IsIgnorableSocketException())
case QuicException:
case SocketException se when se.IsIgnorableSocketException():
return true;
default:
return false;
}

return false;
}

private void ThrowIfStreamNull()
Expand Down

0 comments on commit 4b491b9

Please sign in to comment.