]> git.meshlink.io Git - utcp/commitdiff
Ensure FIN packets start the retransmission timer as well.
authorGuus Sliepen <guus@meshlink.io>
Mon, 19 Oct 2015 19:18:14 +0000 (21:18 +0200)
committerGuus Sliepen <guus@sliepen.org>
Sun, 2 Jul 2017 10:04:30 +0000 (12:04 +0200)
utcp.c

diff --git a/utcp.c b/utcp.c
index c93d4bb35bc476717fa9233b7c7a43e73d546a77..89a38b7d1c9546e94458531031b2ea419dad9cd6 100644 (file)
--- 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;
 }