diff --git a/Common/src/Pollster/Pollster.cs b/Common/src/Pollster/Pollster.cs index 9cbf78707..cc1610dbb 100644 --- a/Common/src/Pollster/Pollster.cs +++ b/Common/src/Pollster/Pollster.cs @@ -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();