mirror of git://git.sysmocom.de/ofono
Fix: Make sure we still increment read_count
This commit is contained in:
parent
c288921bab
commit
e63840ba11
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue