From 5164c6f71eee16327cdd1425b3dff5a76a28bd9e Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 21 Sep 2021 00:21:50 +0100 Subject: [PATCH] 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. --- server/peer.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); + } } } -- 2.11.0