Don't let server_client_check_focus use a dead bufferevent, from Romain

Francoise.
This commit is contained in:
Nicholas Marriott 2013-04-21 21:32:00 +00:00
parent 55640a31b3
commit 5dda1abc32

View File

@ -514,8 +514,10 @@ server_client_loop(void)
w->flags &= ~WINDOW_REDRAW; w->flags &= ~WINDOW_REDRAW;
TAILQ_FOREACH(wp, &w->panes, entry) { TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp->fd != -1) {
server_client_check_focus(wp); server_client_check_focus(wp);
server_client_check_resize(wp); server_client_check_resize(wp);
}
wp->flags &= ~PANE_REDRAW; wp->flags &= ~PANE_REDRAW;
} }
} }
@ -527,7 +529,7 @@ server_client_check_resize(struct window_pane *wp)
{ {
struct winsize ws; struct winsize ws;
if (wp->fd == -1 || !(wp->flags & PANE_RESIZE)) if (!(wp->flags & PANE_RESIZE))
return; return;
memset(&ws, 0, sizeof ws); memset(&ws, 0, sizeof ws);