h->tracking[u->id] = NULL;
h->active--;
+ if (u->ev) (void)fr_event_timer_delete(&u->ev);
+
/*
* We've sent 255 packets, and received all replies. Shut the connection down.
*
* may not be called.
*/
udp_request_reset(h, u);
- if (u->ev) (void) fr_event_timer_delete(&u->ev);
fr_trunk_request_signal_fail(treq);
continue;
}
if (reason == FR_TRUNK_CANCEL_REASON_REQUEUE) {
udp_handle_t *h = talloc_get_type_abort(conn->h, udp_handle_t);
- /*
- * Delete the request_timeout
- *
- * Note: There might not be a request timeout
- * set in the case where the request was
- * queued for sendmmsg but never actually
- * sent.
- */
- if (u->ev) (void) fr_event_timer_delete(&u->ev);
udp_request_reset(h, u);
}
udp_request_t *u = talloc_get_type_abort(preq_to_reset, udp_request_t);
udp_handle_t *h = talloc_get_type_abort(conn->h, udp_handle_t);
- if (u->ev) (void)fr_event_timer_delete(&u->ev);
if (u->packet) udp_request_reset(h, u);
/*