Fix timer bug (again)
o9000 o9000
1 files changed,
1 insertions(+),
3 deletions(-)
jump to
M
src/util/timer.c
→
src/util/timer.c
@@ -389,7 +389,6 @@ multi_timeout_handler* mth = arg;
struct timespec cur_time; clock_gettime(CLOCK_MONOTONIC, &cur_time); GSList* it = mth->timeout_list; -start: while (it) { timeout* t = it->data; if (++t->multi_timeout->current_count >= t->multi_timeout->count_to_expiration) {@@ -399,8 +398,7 @@ // Timer still exists
t->multi_timeout->current_count = 0; t->timeout_expires = add_msec_to_timespec(cur_time, t->interval_msec); } else { - it = mth->timeout_list; - goto start; + return; } } it = it->next;