]> git.meshlink.io Git - catta/blobdiff - avahi-common/simple-watch.c
fix for threading simple polls
[catta] / avahi-common / simple-watch.c
index 4bb763a953b718b7a50aed0906ff9a070a9f0546..fde41e4800bae2627b370e0585a10cde9de9147e 100644 (file)
@@ -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);