We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0edd731 commit 2ffee96Copy full SHA for 2ffee96
1 file changed
Universe.CpuUsage/CpuUsageAsyncWatcher.cs
@@ -84,8 +84,12 @@ private void ContextChangedHandler(AsyncLocalValueChangedArgs<object> args)
84
{
85
var contextOnStart = ContextItem.Value;
86
ContextItem.Value = null;
87
- if (contextOnStart == null) throw new InvalidOperationException(
88
- "CpuUsageAsyncWatcher.OnEnd: Missing contextOnStart. Please report");
+ if (contextOnStart == null)
+ {
89
+ // .Stop() lost, Force Stop()
90
+ IsRunning = false;
91
+ // throw new InvalidOperationException("CpuUsageAsyncWatcher.OnEnd: Missing contextOnStart. Please report");
92
+ }
93
94
if (tid != contextOnStart.ThreadId)
95
throw new InvalidOperationException(
0 commit comments