mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 00:56:09 +03:00
Remove while true
This commit is contained in:
parent
2b17d3925a
commit
47d504faf0
@ -77,7 +77,7 @@ namespace JetKarmaBot.Services
|
||||
}
|
||||
public async Task SaveLoop(CancellationToken ct = default(CancellationToken))
|
||||
{
|
||||
while (true)
|
||||
while (!ct.IsCancellationRequested)
|
||||
{
|
||||
await Task.Delay(cfg.Timeout.SaveIntervalSeconds * 1000, ct);
|
||||
await Save(ct);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user