From 83037e345dd702f2a013322139ef0b7bab7e170f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 11 Feb 2011 02:38:32 +0100 Subject: [PATCH] uloop: allow timeouts to cancel the event loop --- uloop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uloop.c b/uloop.c index 8410634..c2a7b3e 100644 --- a/uloop.c +++ b/uloop.c @@ -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)); } } -- 2.25.1