Skip to content

Commit

Permalink
Fix autopoll wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Mar 3, 2022
1 parent e2f7daf commit 4acdc5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConfigCatClient/ConfigService/AutoPollConfigService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private void StartScheduler(TimeSpan interval)
var realNextTime = scheduledNextTime.Subtract(DateTimeOffset.UtcNow);
if (realNextTime > TimeSpan.Zero)
{
await Task.Delay(interval, this.timerCancellationTokenSource.Token);
await Task.Delay(realNextTime, this.timerCancellationTokenSource.Token);
}
}
}
Expand Down

0 comments on commit 4acdc5c

Please sign in to comment.