Browse code

- skip deleted timers when traversing the list

Jan Janak authored on 01/02/2005 13:25:57
Showing 1 changed files
... ...
@@ -628,7 +628,7 @@ static void insert_timer_unsafe( struct timer *timer_list, struct timer_link *tl
628 628
 	for(ptr = timer_list->last_tl.prev_tl; 
629 629
 	    ptr != &timer_list->first_tl; 
630 630
 	    ptr = ptr->prev_tl) {
631
-		if (ptr->time_out <= time_out) break;
631
+		if ((ptr->time_out != TIMER_DELETED) && (ptr->time_out <= time_out)) break;
632 632
 	}
633 633
 
634 634
 	tl->prev_tl = ptr;