diff options
author | 2009-11-04 08:35:11 +0000 | |
---|---|---|
committer | 2009-11-04 08:35:11 +0000 | |
commit | 6679522a430a0faff639b412e8fbfee9850a923f (patch) | |
tree | 984c1a34dc28a7c641397c1d7b1ee728c5735995 /usr.bin/tmux/server-window.c | |
parent | tweak previous; (diff) | |
download | wireguard-openbsd-6679522a430a0faff639b412e8fbfee9850a923f.tar.xz wireguard-openbsd-6679522a430a0faff639b412e8fbfee9850a923f.zip |
Don't backoff based on suspended or deda clients as they are always likely to
have data backed up.
Diffstat (limited to 'usr.bin/tmux/server-window.c')
-rw-r--r-- | usr.bin/tmux/server-window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-window.c b/usr.bin/tmux/server-window.c index 29d6641c9fc..11f388ebded 100644 --- a/usr.bin/tmux/server-window.c +++ b/usr.bin/tmux/server-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-window.c,v 1.3 2009/10/28 22:53:14 nicm Exp $ */ +/* $OpenBSD: server-window.c,v 1.4 2009/11/04 08:35:11 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -78,6 +78,8 @@ server_window_backoff(struct window_pane *wp) c = ARRAY_ITEM(&clients, i); if (c == NULL || c->session == NULL) continue; + if ((c->flags & (CLIENT_SUSPENDED|CLIENT_DEAD)) != 0) + continue; if (c->session->curw->window != wp->window) continue; if (BUFFER_USED(c->tty.out) > BACKOFF_THRESHOLD) |