From: Nick Porter Date: Tue, 28 May 2024 09:19:41 +0000 (+0100) Subject: Remove lifetime timer event when setting a tconn to drain X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=010e264131c51d8852eb5204d8bc15e8c91a26aa;p=thirdparty%2Ffreeradius-server.git Remove lifetime timer event when setting a tconn to drain --- diff --git a/src/lib/server/trunk.c b/src/lib/server/trunk.c index debdbd08293..f8c61fb7fbf 100644 --- a/src/lib/server/trunk.c +++ b/src/lib/server/trunk.c @@ -3193,6 +3193,8 @@ static void trunk_connection_enter_draining_to_free(fr_trunk_connection_t *tconn { fr_trunk_t *trunk = tconn->pub.trunk; + if (tconn->lifetime_ev) fr_event_timer_delete(&tconn->lifetime_ev); + switch (tconn->pub.state) { case FR_TRUNK_CONN_ACTIVE: case FR_TRUNK_CONN_FULL: