From: Guus Sliepen Date: Mon, 19 Oct 2015 19:18:14 +0000 (+0200) Subject: Ensure FIN packets start the retransmission timer as well. X-Git-Url: http://git.meshlink.io/?p=utcp;a=commitdiff_plain;h=1ba5f4c56c38b3c986dabb5d0feced74d81cd490 Ensure FIN packets start the retransmission timer as well. --- diff --git a/utcp.c b/utcp.c index c93d4bb..89a38b7 100644 --- a/utcp.c +++ b/utcp.c @@ -1262,6 +1262,8 @@ int utcp_shutdown(struct utcp_connection *c, int dir) { c->snd.last++; ack(c, false); + if(!timerisset(&c->rtrx_timeout)) + start_retransmit_timer(c); return 0; }