summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-02 23:12:23 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-02 23:12:23 +0200
commit5991e456cd50b7ab9f5783caceaf4731046db31a (patch)
treee90c28c0d952ae76fb49cf7328af3d5887042da2 /src
parent6c401d89e229fe24cb35b4758f1abb3cfb1cc966 (diff)
downloadfastd-5991e456cd50b7ab9f5783caceaf4731046db31a.tar
fastd-5991e456cd50b7ab9f5783caceaf4731046db31a.zip
Fix handshake and keepalive scheduling
Diffstat (limited to 'src')
-rw-r--r--src/task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/task.c b/src/task.c
index bd3ee7a..fb75766 100644
--- a/src/task.c
+++ b/src/task.c
@@ -65,7 +65,7 @@ static bool is_handshake(fastd_queue_entry *data, void *extra) {
fastd_peer *peer = extra;
if (task->peer != peer)
- return true;
+ return false;
return (task->type == TASK_HANDSHAKE);
}
@@ -91,7 +91,7 @@ static bool is_keepalive(fastd_queue_entry *data, void *extra) {
fastd_peer *peer = extra;
if (task->peer != peer)
- return true;
+ return false;
return (task->type == TASK_KEEPALIVE);
}