From 800837ff3f21799281525af3d8537f362e5cb43e Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 12 May 2026 09:27:28 +0000 Subject: [PATCH] Fix control mode teardown ordering for queued pane output, GitHub issue 5064 from Aaron Campbell. --- control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.c b/control.c index 4a7201ef..ab461ff1 100644 --- a/control.c +++ b/control.c @@ -847,9 +847,9 @@ control_stop(struct client *c) if (evtimer_initialized(&cs->subs_timer)) evtimer_del(&cs->subs_timer); + control_reset_offsets(c); TAILQ_FOREACH_SAFE(cb, &cs->all_blocks, all_entry, cb1) control_free_block(cs, cb); - control_reset_offsets(c); c->control_state = NULL; free(cs);