mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-18 17:18:42 +00:00
Cancelling all timers when loop stops
This commit is contained in:
parent
c49ee6e1a6
commit
66f27005ec
@ -560,8 +560,11 @@ birdloop_main(void *arg)
|
||||
/* Flush remaining events */
|
||||
ASSERT_DIE(!ev_run_list(&loop->event_list));
|
||||
|
||||
/* No timers allowed */
|
||||
ASSERT_DIE(timers_count(&loop->time) == 0);
|
||||
/* Drop timers */
|
||||
while (t = timers_first(&loop->time))
|
||||
tm_stop(t);
|
||||
|
||||
/* No sockets allowed */
|
||||
ASSERT_DIE(EMPTY_LIST(loop->sock_list));
|
||||
ASSERT_DIE(loop->sock_num == 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user