summaryrefslogtreecommitdiffstats
path: root/gatchat/gatserver.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-03-30 22:06:12 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-03-30 22:06:12 -0500
commite63840ba11a5835af8a972edf381d046d2dfcd46 (patch)
treef473ddfc12a1fc33e356de8f4c9ff0b09f43ff23 /gatchat/gatserver.c
parentc288921bab72de2a3ac41e5a903b3e43934dd788 (diff)
downloadofono-e63840ba11a5835af8a972edf381d046d2dfcd46.tar.bz2
Fix: Make sure we still increment read_count
Diffstat (limited to 'gatchat/gatserver.c')
-rw-r--r--gatchat/gatserver.c4
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) {