Skip to content

Commit

Permalink
Fix check for remainder value for delay in InMemoryTransport
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Feb 1, 2021
1 parent fee26d2 commit a5843cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private async Task DelayThenExecuteAsync<TArg>(DateTimeOffset scheduled, Func<TA
throw new ArgumentNullException(nameof(action));
}

var remainder = DateTimeOffset.UtcNow - scheduled;
var remainder = scheduled - DateTimeOffset.UtcNow;
if (remainder > TimeSpan.Zero)
{
await Task.Delay(remainder, cancellationToken);
Expand Down

0 comments on commit a5843cd

Please sign in to comment.