Skip to content

Commit cdf09b1

Browse files
author
devizer
committed
Added handling of missing required Stop(), fix nuget pdb
1 parent fad0f05 commit cdf09b1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Universe.CpuUsage/CpuUsageAsyncWatcher.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ private void ContextChangedHandler(AsyncLocalValueChangedArgs<object> args)
8888
{
8989
// .Stop() lost, Force Stop()
9090
IsRunning = false;
91+
return;
9192
// throw new InvalidOperationException("CpuUsageAsyncWatcher.OnEnd: Missing contextOnStart. Please report");
9293
}
9394

Universe.CpuUsage/Universe.CpuUsage.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Targets everywhere: Net Framework 2.0-4.8, Net Standard 1.3-2.1, Net Core 1.0+ .
4646
<PackageIconUrl>https://raw.githubusercontent.com/devizer/Universe.CpuUsage/master/images/CpuUsage.Icon-V2.png</PackageIconUrl>
4747
<PackageTags>metrics kernel kernel-time user-time getrusage thread_info GetProcessTimes GetThreadTimes cpu-usage linux windows osx</PackageTags>
4848
<LangVersion>latest</LangVersion>
49+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
4950
</PropertyGroup>
5051

5152
<PropertyGroup>

0 commit comments

Comments
 (0)