summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-09-13 22:37:06 +0000
committerLennart Poettering <lennart@poettering.net>2005-09-13 22:37:06 +0000
commitfc260d3d4a1991ef2affddd2b483436f6faae232 (patch)
tree9df132bf17730b19c855f7d3772d40fa820e9d04
parent29738ceee56fdbf68e9dd3d6a83256c3f7d75886 (diff)
fix for threading simple polls
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@577 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-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);