diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-02 23:12:23 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-02 23:12:23 +0200 |
commit | 5991e456cd50b7ab9f5783caceaf4731046db31a (patch) | |
tree | e90c28c0d952ae76fb49cf7328af3d5887042da2 | |
parent | 6c401d89e229fe24cb35b4758f1abb3cfb1cc966 (diff) | |
download | fastd-5991e456cd50b7ab9f5783caceaf4731046db31a.tar fastd-5991e456cd50b7ab9f5783caceaf4731046db31a.zip |
Fix handshake and keepalive scheduling
-rw-r--r-- | src/task.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |