Skip to content

Commit

Permalink
Fix throwing an exception of _pipeTask=null when the client disconnec…
Browse files Browse the repository at this point in the history
…ts without calling the RunAsync method (#725)
  • Loading branch information
wj8400684 authored May 4, 2024
1 parent 83378d1 commit 1ceb094
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SuperSocket.Connection/PipeConnectionBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ private async ValueTask HandleClosing()
{
try
{
await _pipeTask.ConfigureAwait(false);
if (_pipeTask != null)
await _pipeTask.ConfigureAwait(false);
}
catch (OperationCanceledException)
{
Expand Down

0 comments on commit 1ceb094

Please sign in to comment.