Skip to content

Commit

Permalink
Fix timer bug (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
o9000 committed Jul 4, 2015
1 parent 9f8423f commit 9fd9d51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/util/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ void callback_multi_timeout(void* 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) {
Expand All @@ -399,8 +398,7 @@ void callback_multi_timeout(void* arg)
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;
Expand Down

0 comments on commit 9fd9d51

Please sign in to comment.