Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uloop.c b/uloop.c
index 0c57753..d2f41bb 100644
--- a/uloop.c
+++ b/uloop.c
@@ -548,7 +548,7 @@ int uloop_run_timeout(int timeout)
uloop_gettime(&tv);
next_time = uloop_get_next_timeout(&tv);
- if (timeout > 0 && timeout < next_time)
+ if (timeout >= 0 && timeout < next_time)
next_time = timeout;
uloop_run_events(next_time);
}