uloop: fix multiple calls to uloop_run()

Signed-off-by: Luka Perkov <luka@openwrt.org>
This commit is contained in:
Luka Perkov 2014-05-05 02:41:34 +02:00 committed by Felix Fietkau
parent 9203927e58
commit f32a53f92b

View file

@ -646,6 +646,7 @@ void uloop_run(void)
if (!recursive_calls++) if (!recursive_calls++)
uloop_setup_signals(true); uloop_setup_signals(true);
uloop_cancelled = false;
while(!uloop_cancelled) while(!uloop_cancelled)
{ {
uloop_gettime(&tv); uloop_gettime(&tv);