Skip to content

Commit 4a38009

Browse files
author
devizer
committed
Fix Cpu Usage Async Watcher
1 parent 0dbc198 commit 4a38009

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Universe.CpuUsage/CpuUsageAsyncWatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void Stop()
4343
IsRunning = false;
4444
#if !NET20 && !NET30 && !NET35 && !NET40 && !NET45
4545
ContextItem.Value = null;
46-
_ContextSwitchListener.Value = null;
46+
if (_ContextSwitchListener != null) _ContextSwitchListener.Value = null;
4747
_ContextSwitchListener = null;
4848
#endif
4949
// _Log = null; it is the results

0 commit comments

Comments
 (0)