summaryrefslogtreecommitdiffstats
path: root/gatchat/gatserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gatserver.c')
-rw-r--r--gatchat/gatserver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index 4904adf6..2fca9e51 100644
--- a/gatchat/gatserver.c
+++ b/gatchat/gatserver.c
@@ -771,6 +771,10 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond,
g_at_util_debug_chat(TRUE, (char *)buf, rbytes,
server->debugf, server->debug_data);
+ /* Ignore incoming bytes when processing a command line */
+ if (server->processing_cmdline)
+ continue;
+
read_count++;
total_read += rbytes;