From: Lennart Poettering Date: Tue, 13 Sep 2005 22:37:06 +0000 (+0000) Subject: fix for threading simple polls X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=fc260d3d4a1991ef2affddd2b483436f6faae232;p=catta fix for threading simple polls git-svn-id: file:///home/lennart/svn/public/avahi/trunk@577 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- 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);