summaryrefslogtreecommitdiffstats
path: root/avahi-common/simple-watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-common/simple-watch.c')
-rw-r--r--avahi-common/simple-watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-common/simple-watch.c b/avahi-common/simple-watch.c
index 4bb763a..fde41e4 100644
--- a/avahi-common/simple-watch.c
+++ b/avahi-common/simple-watch.c
@@ -430,7 +430,7 @@ int avahi_simple_poll_iterate(AvahiSimplePoll *s, int timeout) {
s->events_valid = 1;
/* Check whether the wakeup time has been reached now */
- if (next_timeout) {
+ if ((next_timeout = find_next_timeout(s))) {
struct timeval now;
gettimeofday(&now, NULL);