mirror of https://github.com/tmux/tmux.git
Treat a pane that has died the same as no pane when sending data to
control mode clients, GitHub issue 2828.pull/2851/head
parent
66aaa9e484
commit
5fdea440ce
|
@ -665,7 +665,7 @@ control_write_pending(struct client *c, struct control_pane *cp, size_t limit)
|
||||||
uint64_t age, t = get_timer();
|
uint64_t age, t = get_timer();
|
||||||
|
|
||||||
wp = control_window_pane(c, cp->pane);
|
wp = control_window_pane(c, cp->pane);
|
||||||
if (wp == NULL) {
|
if (wp == NULL || wp->fd == -1) {
|
||||||
TAILQ_FOREACH_SAFE(cb, &cp->blocks, entry, cb1) {
|
TAILQ_FOREACH_SAFE(cb, &cp->blocks, entry, cb1) {
|
||||||
TAILQ_REMOVE(&cp->blocks, cb, entry);
|
TAILQ_REMOVE(&cp->blocks, cb, entry);
|
||||||
control_free_block(cs, cb);
|
control_free_block(cs, cb);
|
||||||
|
@ -865,7 +865,7 @@ control_check_subs_pane(struct client *c, struct control_sub *csub)
|
||||||
struct control_sub_pane *csp, find;
|
struct control_sub_pane *csp, find;
|
||||||
|
|
||||||
wp = window_pane_find_by_id(csub->id);
|
wp = window_pane_find_by_id(csub->id);
|
||||||
if (wp == NULL)
|
if (wp == NULL || wp->fd == -1)
|
||||||
return;
|
return;
|
||||||
w = wp->window;
|
w = wp->window;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue