From: Santosh Kumar Gupta Date: Thu, 23 Aug 2018 20:49:12 +0000 (+0530) Subject: protocol: exit thread as soon as the command terminate, fixes #112 X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=f95cacd61bc37a018a5df117e1ad9db8adce39bc;p=ttyd.git protocol: exit thread as soon as the command terminate, fixes #112 --- diff --git a/src/protocol.c b/src/protocol.c index 07fe022..8e1e4b7 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -218,6 +218,8 @@ thread_run_command(void *args) { break; } } + + if (client->pty_len <= 0) break; } break; }