From f95cacd61bc37a018a5df117e1ad9db8adce39bc Mon Sep 17 00:00:00 2001 From: Santosh Kumar Gupta Date: Fri, 24 Aug 2018 02:19:12 +0530 Subject: [PATCH] protocol: exit thread as soon as the command terminate, fixes #112 --- src/protocol.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.43.4