diff --git a/Source/Scheduling/Scheduler.cs b/Source/Scheduling/Scheduler.cs index 7726b5b..ebf38a7 100644 --- a/Source/Scheduling/Scheduler.cs +++ b/Source/Scheduling/Scheduler.cs @@ -419,7 +419,9 @@ namespace Nuclex.Support.Scheduling { this.notificationWaitEvent.WaitOne(); } else { long remainingTicks = nextDueNotification.NextDueTicks - this.timeSource.Ticks; - this.timeSource.WaitOne(this.notificationWaitEvent, remainingTicks); + if(remainingTicks > 0) { + this.timeSource.WaitOne(this.notificationWaitEvent, remainingTicks); + } } // Have we been woken up because the Scheduler is being disposed?