From 12d2840fb48e773b4715cfab1d6778c42cffcb5a Mon Sep 17 00:00:00 2001 From: Kenneth G Raeburn Date: Wed, 19 Oct 1988 18:49:48 +0000 Subject: Moved nexttimo to be before reclamation. --- server/timer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/timer.c') diff --git a/server/timer.c b/server/timer.c index b343c46..338f79b 100644 --- a/server/timer.c +++ b/server/timer.c @@ -235,6 +235,10 @@ timer_process() right_now = NOW; t=ALARM_NEXT(timers); + /* note that in the case that there are no timers, the ALARM_TIME + is set to 0L, which is what the main loop expects as the + nexttimo when we have no timout work to do */ + nexttimo = ALARM_TIME(t); if (t != timers && right_now >= ALARM_TIME(t)) { /* * This one goes off NOW.. @@ -250,10 +254,6 @@ timer_process() ALARM_ARG(t) = (caddr_t) NULL; xfree(t); } - /* note that in the case that there are no timers, the ALARM_TIME - is set to 0L, which is what the main loop expects as the - nexttimo when we have no timout work to do */ - nexttimo = ALARM_TIME(t); if (valid) { (queue)(queue_arg); -- cgit v1.2.3