fix: get non negative number

This commit is contained in:
2025-02-02 01:57:08 +03:00
parent dda0a29300
commit ad8f356fc1

View File

@ -82,7 +82,7 @@ public class ScheduleSyncService : IHostedService, IDisposable
delay = 1;
_cancellationTokenSource = new CancellationTokenSource();
_timer = new Timer(ExecuteTask, null, (long)delay, Timeout.Infinite);
_timer = new Timer(ExecuteTask, null, Math.Abs((long)delay), Timeout.Infinite);
}
private async void ExecuteTask(object? state)