From 89ddae23ef241e0e887007499059784e2e86da87 Mon Sep 17 00:00:00 2001 From: mjentsch Date: Thu, 2 Oct 2014 12:49:46 +0200 Subject: [PATCH] Restart ping-timer on read --- net.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net.c b/net.c index 1509d76..8cdc646 100644 --- a/net.c +++ b/net.c @@ -435,9 +435,8 @@ void try_read (struct connection *c) { } if (r > 0) { c->last_receive_time = get_double_time (); - // TODO implement ping? - //stop_ping_timer (c); - //start_ping_timer (c); + stop_ping_timer (c); + start_ping_timer (c); } if (r >= 0) { c->in_tail->wptr += r;