protocol: exit thread as soon as the command terminate, fixes #112

This commit is contained in:
Santosh Kumar Gupta
2018-08-24 02:19:12 +05:30
committed by Shuanglei Tao
parent 10b479e4b8
commit f95cacd61b

View File

@@ -218,6 +218,8 @@ thread_run_command(void *args) {
break; break;
} }
} }
if (client->pty_len <= 0) break;
} }
break; break;
} }