Tweak Task.Delay() to fix odd issue

This commit is contained in:
Starbeamrainbowlabs 2019-03-11 20:41:49 +00:00
parent 8099155455
commit a256158f89
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ namespace RhinoReminds
if (DateTime.Now < nextReminder.Time)
{
Console.WriteLine($"[Rhino/Reminderd] Sleeping for {nextWaitingTime}");
await Task.Delay(nextWaitingTime, reminderWatcherResetToken);
await Task.Delay((int)Math.Ceiling(Math.Abs(nextWaitingTime.TotalMilliseconds)), reminderWatcherResetToken);
}
}
else {