Skip to content

Commit

Permalink
fix: dispose an undisposed object
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem committed Mar 26, 2024
1 parent 629dac1 commit 029c379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/src/Pollster/Pollster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public async Task MainLoop(CancellationToken cancellationToken)
await Init(cancellationToken)
.ConfigureAwait(false);

var cts = new CancellationTokenSource();
using var cts = new CancellationTokenSource();
cancellationToken.Register(() =>
{
logger_.LogTrace("Global cancellation has been triggered");
Expand Down

0 comments on commit 029c379

Please sign in to comment.