]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove lifetime timer event when setting a tconn to drain
authorNick Porter <nick@portercomputing.co.uk>
Tue, 28 May 2024 09:19:41 +0000 (10:19 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 7 Jun 2024 02:26:58 +0000 (22:26 -0400)
src/lib/server/trunk.c

index debdbd08293b47ad2639e0ebceacbb9705528346..f8c61fb7fbf0a95ad060941353800113bfbbe585 100644 (file)
@@ -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: