From 281df4766b82c27746bc2a83c093012af03d5050 Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Mon, 17 Apr 2017 14:23:24 -0700 Subject: [PATCH] Skip clowny output lines in another context --- cmd_shex.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd_shex.c b/cmd_shex.c index 7b0c72f..c8aba31 100644 --- a/cmd_shex.c +++ b/cmd_shex.c @@ -283,7 +283,10 @@ try_adb_stub_2(const struct child_start_info* csi, } chat_talk_at(cc, cmd, CHAT_SWALLOW_PROMPT); - char* resp = chat_read_line(cc); + char* resp; + do { + resp = chat_read_line(cc); + } while (clowny_output_line_p(resp)); dbg("stub resp: [%s]", resp); if (parse_child_hello(resp, chello) &&