---
 src/sms.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/sms.c b/src/sms.c
index 01f54dd..da810f8 100644
--- a/src/sms.c
+++ b/src/sms.c
@@ -47,6 +47,7 @@
 #define SETTINGS_GROUP "Settings"
 
 #define TXQ_MAX_RETRIES 4
+#define NETWORK_TIMEOUT 332
 
 static gboolean tx_next(gpointer user_data);
 
@@ -630,6 +631,11 @@ static void tx_finished(const struct ofono_error *error, 
int mr, void *data)
                if (sms->registered == FALSE)
                        return;
 
+               /* Retry done only for Network Timeout failure */
+               if (error->type == OFONO_ERROR_TYPE_CMS &&
+                               error->error != NETWORK_TIMEOUT)
+                       goto next_q;
+
                if (!(entry->flags & OFONO_SMS_SUBMIT_FLAG_RETRY))
                        goto next_q;
 
-- 
1.7.0.4

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to