Skip to content

Commit

Permalink
Try making tasks volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
nabsul committed Nov 13, 2022
1 parent 5eeda58 commit 68de7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Services/CertChangeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public class CertChangeService
private readonly K8sClient _k8s;
private readonly KCertClient _kcert;

private Task _runningTask = Task.CompletedTask;
private Task _nextTask = null;
private volatile Task _runningTask = Task.CompletedTask;
private volatile Task _nextTask = null;

public CertChangeService(ILogger<CertChangeService> log, K8sClient k8s, KCertClient kcert)
{
Expand Down

0 comments on commit 68de7ac

Please sign in to comment.