]> git.meshlink.io Git - utcp/commit
Don't reset timers that were not set in utcp_reset_timers() and utcp_offline().
authorGuus Sliepen <guus@sliepen.org>
Thu, 10 Oct 2019 18:43:45 +0000 (20:43 +0200)
committerGuus Sliepen <guus@sliepen.org>
Thu, 10 Oct 2019 18:43:45 +0000 (20:43 +0200)
commit176d0d61eca0c60738a9caa2d267a29ca23681b8
tree8c97b6c6acf45c506ac371b892ee672017e32766
parent7baf55a28cf48163c007ee2ff56678371d78c990
Don't reset timers that were not set in utcp_reset_timers() and utcp_offline().

In utcp_reset_timers(), we were actually setting the connection timer even
if it was not set before, therefore causing spurious channel closures on
channels that did not have any unACKed data.

In utcp_offline(), we were setting the retransmission timer even if there
was nothing to retransmit.
utcp.c