summaryrefslogtreecommitdiffstats
path: root/src/poll.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-11-18 01:23:21 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-11-18 01:23:21 +0100
commit16e2b0213b54991d9f493d4c0ee7efca18436427 (patch)
tree9a94d449dbefd95709e0c8993b9963e3ece88239 /src/poll.c
parent5082b5a4d2ec52b90e6d7ed178e462a6f0ff6f3e (diff)
downloadfastd-16e2b0213b54991d9f493d4c0ee7efca18436427.tar
fastd-16e2b0213b54991d9f493d4c0ee7efca18436427.zip
Clean up peer task handling
Diffstat (limited to 'src/poll.c')
-rw-r--r--src/poll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/poll.c b/src/poll.c
index fed7001..02ee00b 100644
--- a/src/poll.c
+++ b/src/poll.c
@@ -53,8 +53,8 @@
/** Returns the time to the next task or -1 */
static inline int task_timeout(void) {
- fastd_timeout_t timeout;
- if (!fastd_task_timeout(&timeout))
+ fastd_timeout_t timeout = fastd_task_queue_timeout();
+ if (timeout == fastd_timeout_inv)
return -1;
int diff_msec = timeout - ctx.now;