diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-13 17:33:07 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-13 17:33:07 +0000 |
commit | 8e479662255f480cabc45af5edc10098dc3f1819 (patch) | |
tree | e4e1681a98d5a33c876a31283241f67615e715cb /cmd-respawn-window.c | |
parent | 1415eb3dd249e7730b151a5cfd61c47a712a522f (diff) | |
download | rtmux-8e479662255f480cabc45af5edc10098dc3f1819.tar.gz rtmux-8e479662255f480cabc45af5edc10098dc3f1819.tar.bz2 rtmux-8e479662255f480cabc45af5edc10098dc3f1819.zip |
Destroy panes immediately rather than checking them all every loop.
Diffstat (limited to 'cmd-respawn-window.c')
-rw-r--r-- | cmd-respawn-window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c index 540931aa..227754c1 100644 --- a/cmd-respawn-window.c +++ b/cmd-respawn-window.c @@ -80,6 +80,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx) ctx->error(ctx, "respawn window failed: %s", cause); xfree(cause); environ_free(&env); + server_destroy_pane(wp); return (-1); } layout_init(w); |