From e63840ba11a5835af8a972edf381d046d2dfcd46 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 30 Mar 2010 22:06:12 -0500 Subject: Fix: Make sure we still increment read_count --- gatchat/gatserver.c | 4 ++-- 1 file 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) { -- cgit v1.2.3