mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 08:33:17 +01:00
Do not continue to send data to suspended/locked clients or there will
be a huge rush of it after they are resumed/unlocked. The main output path was fine but status line updates and the terminal state reset code were missed.
This commit is contained in:
parent
a8e9654b65
commit
d5269a2eed
@ -176,6 +176,10 @@ screen_redraw_screen(struct client *c, int status_only, int borders_only)
|
||||
u_int i, j, type;
|
||||
int status, fg, bg;
|
||||
|
||||
/* Suspended clients should not be updated. */
|
||||
if (c->flags & CLIENT_SUSPENDED)
|
||||
return;
|
||||
|
||||
/* Get status line, er, status. */
|
||||
if (c->message_string != NULL || c->prompt_string != NULL)
|
||||
status = 1;
|
||||
|
@ -474,6 +474,9 @@ server_client_reset_state(struct client *c)
|
||||
struct options *wo = &w->options;
|
||||
int status, mode;
|
||||
|
||||
if (c->flags & CLIENT_SUSPENDED)
|
||||
return;
|
||||
|
||||
tty_region(&c->tty, 0, c->tty.sy - 1);
|
||||
|
||||
status = options_get_number(oo, "status");
|
||||
|
Loading…
Reference in New Issue
Block a user