From 7ea64305ab924304e0287625ec7a96811c34fa80 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 2 Jun 2018 09:42:19 -0400 Subject: [PATCH] keepalive every tick --- llarp/iwp_link.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/llarp/iwp_link.cpp b/llarp/iwp_link.cpp index 75cbcb69c..c71b042b1 100644 --- a/llarp/iwp_link.cpp +++ b/llarp/iwp_link.cpp @@ -624,7 +624,6 @@ namespace iwp llarp_link_establish_job *establish_job = nullptr; - uint16_t ticks = 0; uint32_t establish_job_id = 0; uint32_t frames = 0; @@ -806,10 +805,8 @@ namespace iwp // are done return frames == 0; } - // only send keepalive very 10 ticks - ++ticks; - if(ticks % 10 == 0) - send_keepalive(this); + // send keepalive every tick + send_keepalive(this); // TODO: determine if we are too idle return false;