mirror of git://git.sysmocom.de/ofono
Fix ignore incoming bytes during parsing
Server processes one command line at one time, so ignore the rest incoming bytes during the command parsing.
This commit is contained in:
parent
1f5e785901
commit
c288921bab
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue