Skip to content

Commit

Permalink
Ignore dispose error (#5105)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Jun 17, 2024
1 parent bfdaf0b commit 24b992f
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,15 @@ public void Stop()
if (!_stopped)
{
EqtTrace.Info("SocketClient: Stop: Cancellation requested. Stopping message loop.");
_cancellation.Cancel();

try
{
_cancellation.Cancel();
}
catch (ObjectDisposedException)
{
// This is race condition with stop on error.
}
}
}

Expand Down

0 comments on commit 24b992f

Please sign in to comment.