Skip to content

Commit

Permalink
fix: prevent errors on dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
VonDerBeck committed Mar 15, 2024
1 parent 686b0a4 commit cbef4b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/Zeebe.Client.Accelerator/Zeebe.Client.Accelerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ So this is our version of a good Bootstrap Extension for the C# Zeebe Client. Cr
<PackageIcon>zeebe-logo.png</PackageIcon>
<Company>Accso - Accelerated Solutions GmbH</Company>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>2.1.1</Version>
<Version>2.1.6</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0|AnyCPU'">
<WarningLevel>7</WarningLevel>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0|AnyCPU'">
<WarningLevel>7</WarningLevel>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
Expand Down
2 changes: 1 addition & 1 deletion src/Zeebe.Client.Accelerator/ZeebeHostedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void Dispose()
}
public void StopInternal()
{
workers.ForEach(w => w.Dispose());
workers.ToList().ForEach(w => w.Dispose());
workers.Clear();
}

Expand Down

0 comments on commit cbef4b3

Please sign in to comment.