diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-11-29 03:05:11 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-11-29 03:09:32 -0600 |
commit | 83c275745fa35016ceaee53ab36979794507014a (patch) | |
tree | 79b51e3fc6052a4a719a2af2faa500a464705bdd /src/sms.c | |
parent | 6e3a6156b34c52bde253b097976d0ba9dd575879 (diff) | |
download | ofono-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |