]> git.meshlink.io Git - catta/commitdiff
fix for threading simple polls
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Sep 2005 22:37:06 +0000 (22:37 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Sep 2005 22:37:06 +0000 (22:37 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@577 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

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);