]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix scheduler to allow stepping clock from timeout handler
authorHattink, Tjalling (FINT) <T.Hattink@fugro.nl>
Tue, 26 Jan 2010 16:11:33 +0000 (17:11 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 26 Jan 2010 16:20:08 +0000 (17:20 +0100)
sched.c

diff --git a/sched.c b/sched.c
index 38f5e2ea40183c67c9d9b2890a733a5e8a0df082..6412f0a4f3aeea188acb94f7b9ed965a7c76ec58 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -440,7 +440,7 @@ dispatch_timeouts(struct timeval *now) {
   TimerQueueEntry *ptr;
   int n_done = 0;
 
-  while ((n_timer_queue_entries > 0) &&
+  if ((n_timer_queue_entries > 0) &&
          (UTI_CompareTimevals(now, &(timer_queue.next->tv)) >= 0)) {
     ptr = timer_queue.next;