We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfdaf0b commit 24b992fCopy full SHA for 24b992f
src/Microsoft.TestPlatform.CommunicationUtilities/SocketClient.cs
@@ -70,7 +70,15 @@ public void Stop()
70
if (!_stopped)
71
{
72
EqtTrace.Info("SocketClient: Stop: Cancellation requested. Stopping message loop.");
73
- _cancellation.Cancel();
+
74
+ try
75
+ {
76
+ _cancellation.Cancel();
77
+ }
78
+ catch (ObjectDisposedException)
79
80
+ // This is race condition with stop on error.
81
82
}
83
84
0 commit comments