diff --git a/src/Horarium/Handlers/RunnerJobs.cs b/src/Horarium/Handlers/RunnerJobs.cs index 731b8da..ebe6857 100644 --- a/src/Horarium/Handlers/RunnerJobs.cs +++ b/src/Horarium/Handlers/RunnerJobs.cs @@ -137,15 +137,15 @@ private async Task TryRunJob(CancellationToken cancellationToken, TimeSpan throw new TaskCanceledException(); } - if (isJobReady) - { - return true; - } - if (!waitTime.Equals(TimeSpan.Zero)) { await Task.Delay(waitTime, cancellationToken); } + + if (isJobReady) + { + return true; + } } return false;