diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 469910edd..601e997b4 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -3426,8 +3426,9 @@ void quic_close(struct connection *conn, void *xprt_ctx) conn_ctx->wait_event.tasklet = NULL; } - quic_conn_drop(qc); TRACE_LEAVE(QUIC_EV_CONN_CLOSE, qc); + + quic_conn_drop(qc); } /* Callback called upon loss detection and PTO timer expirations. */