diff options
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/CounterGroup.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/CounterGroup.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/CounterGroup.cs index c60ba36886..d669114d50 100644 --- a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/CounterGroup.cs +++ b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/CounterGroup.cs @@ -64,6 +64,13 @@ namespace System.Diagnostics.Tracing } } } + else if (e.Command == EventCommand.Disable) + { + lock (this) + { + _pollingIntervalInMilliseconds = 0; + } + } } #endregion // EventSource Command Processing |