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 Apr 2, 2024
1 parent 09a8c18 commit abb6360
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 abb6360

Please sign in to comment.