mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-02 13:52:35 +07:00
tests: Restart stopped timer before calling uev_exit()
There's an issue with uftpd not exiting properly. Cannot nail it down properly but it seems to be related to the stopping of active timers. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -30,6 +30,9 @@ static void cb(uev_t *w, void *UNUSED(arg), int events)
|
||||
fail_unless(!uev_timer_active(&timer2));
|
||||
fail_unless(!uev_cron_active(&cron2));
|
||||
|
||||
/* Restart timer and see if we fail in uev_exit() */
|
||||
uev_timer_start(&timer2);
|
||||
|
||||
uev_exit(w->ctx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user