diff options
author | nicm <nicm> | 2022-07-06 08:31:59 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-07-06 08:31:59 +0000 |
commit | 9e03df5500f802e0a10d52bfaf51eab493b84c70 (patch) | |
tree | 46bc7071722281a34855aaedb6ee2377045b8935 /server-client.c | |
parent | dd602eaa61e82188313b9187021accab260f89c0 (diff) | |
download | rtmux-9e03df5500f802e0a10d52bfaf51eab493b84c70.tar.gz rtmux-9e03df5500f802e0a10d52bfaf51eab493b84c70.tar.bz2 rtmux-9e03df5500f802e0a10d52bfaf51eab493b84c70.zip |
Defer reading from control client until the command line command has
completed.
Diffstat (limited to 'server-client.c')
-rw-r--r-- | server-client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server-client.c b/server-client.c index 7c4c2fdd..864b37b3 100644 --- a/server-client.c +++ b/server-client.c @@ -2791,8 +2791,11 @@ server_client_command_done(struct cmdq_item *item, __unused void *data) if (~c->flags & CLIENT_ATTACHED) c->flags |= CLIENT_EXIT; - else if (~c->flags & CLIENT_EXIT) + else if (~c->flags & CLIENT_EXIT) { + if (c->flags & CLIENT_CONTROL) + control_ready(c); tty_send_requests(&c->tty); + } return (CMD_RETURN_NORMAL); } |