Server processes one command line at one time, so ignore the rest
incoming bytes during the command parsing.
---
 gatchat/gatserver.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index e04e0d2..911bbef 100644
--- a/gatchat/gatserver.c
+++ b/gatchat/gatserver.c
@@ -781,6 +781,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;
-- 
1.6.6.1

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to