From: Mark Wooding Date: Mon, 20 Sep 2021 23:21:50 +0000 (+0100) Subject: server/peer.c (p_txend): Rework the success path. X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/commitdiff_plain/5164c6f71eee16327cdd1425b3dff5a76a28bd9e server/peer.c (p_txend): Rework the success path. Now it's less confusing to add other kinds of success actions here. Not that I wiol on-haven try to do this in an alternate future or anything. --- diff --git a/server/peer.c b/server/peer.c index bc90b32b..0b5a6c22 100644 --- a/server/peer.c +++ b/server/peer.c @@ -565,9 +565,11 @@ static int p_dotxend(peer *p) void p_txend(peer *p, unsigned f) { - if (p_dotxend(p) && p->spec.t_ka) { - sel_rmtimer(&p->tka); - p_setkatimer(p); + if (p_dotxend(p)) { + if (p->spec.t_ka) { + sel_rmtimer(&p->tka); + p_setkatimer(p); + } } }