From 83c275745fa35016ceaee53ab36979794507014a Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 29 Nov 2012 03:05:11 -0600 Subject: sms: Don't try to start the queue if already active If the queue is currently inside a submit operation and the network registration state changes, do not try to schedule the next operation. --- src/sms.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/sms.c b/src/sms.c index e7e44321..02700297 100644 --- a/src/sms.c +++ b/src/sms.c @@ -795,6 +795,9 @@ static void netreg_status_watch(int status, int lac, int ci, int tech, if (sms->tx_source > 0) return; + if (sms->flags & MESSAGE_MANAGER_FLAG_TXQ_ACTIVE) + return; + if (g_queue_get_length(sms->txq)) sms->tx_source = g_timeout_add(0, tx_next, sms); } -- cgit v1.2.3