Skip to content

Commit

Permalink
fix: dispose an undisposed object (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem authored Apr 4, 2024
2 parents 09a8c18 + abb6360 commit 1297e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/src/Pollster/Pollster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ await taskHandler.StopCancelledTask()

public async Task MainLoop(CancellationToken cancellationToken)
{
var cts = CancellationTokenSource.CreateLinkedTokenSource(lifeTime_.ApplicationStopping,
cancellationToken);
using var cts = CancellationTokenSource.CreateLinkedTokenSource(lifeTime_.ApplicationStopping,
cancellationToken);

var recordedErrors = new Queue<Exception>();

Expand Down

0 comments on commit 1297e8e

Please sign in to comment.