From 5991e456cd50b7ab9f5783caceaf4731046db31a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 2 Apr 2012 23:12:23 +0200 Subject: Fix handshake and keepalive scheduling --- src/task.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/task.c') 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); } -- cgit v1.2.3