summaryrefslogtreecommitdiffstats
path: root/src/sms.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-11-29 03:05:11 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-11-29 03:09:32 -0600
commit83c275745fa35016ceaee53ab36979794507014a (patch)
tree79b51e3fc6052a4a719a2af2faa500a464705bdd /src/sms.c
parent6e3a6156b34c52bde253b097976d0ba9dd575879 (diff)
downloadofono-83c275745fa35016ceaee53ab36979794507014a.tar.bz2
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.
Diffstat (limited to 'src/sms.c')
-rw-r--r--src/sms.c3
1 files changed, 3 insertions, 0 deletions
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);
}