Compare commits

..

2 commits

Author SHA1 Message Date
49316836d9
Merge branch 'master' of git.starbeamrainbowlabs.com:sbrl/RhinoReminds
All checks were successful
continuous-integration/laminar-elessar Build 75 succeeded in 55 seconds .
2019-03-11 20:41:54 +00:00
a256158f89
Tweak Task.Delay() to fix odd issue 2019-03-11 20:41:49 +00:00

View file

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