Compare commits
2 commits
e60dd12751
...
49316836d9
Author | SHA1 | Date | |
---|---|---|---|
49316836d9 | |||
a256158f89 |
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue