uloop: allow timeouts to cancel the event loop

This commit is contained in:
Felix Fietkau 2011-02-11 02:38:32 +01:00
parent 7ec33884a3
commit 83037e345d

View file

@ -383,6 +383,8 @@ void uloop_run(void)
{
gettimeofday(&tv, NULL);
uloop_process_timeouts(&tv);
if (uloop_cancelled)
break;
uloop_run_events(uloop_get_next_timeout(&tv));
}
}