[PATCH 08/10] Fix do not emit error if extended error has emitted

Zhenhua Zhang zhenhua.zhang at intel.com
Fri Mar 19 02:44:46 PDT 2010


---
 gatchat/gatserver.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index 1ffc2c3..9683fa3 100644
--- a/gatchat/gatserver.c
+++ b/gatchat/gatserver.c
@@ -165,6 +165,10 @@ static void g_at_server_send_final(GAtServer *server, GAtServerResult result)
 	char r = v250.s4;
 	unsigned int len;
 
+	/* Do not emit error if extended error has already been emitted */
+	if (result == G_AT_SERVER_RESULT_EXT_ERROR)
+		return;
+
 	if (v250.quiet)
 		return;
 
-- 
1.6.6.1



More information about the ofono mailing list