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