aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-25 16:53:24 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-26 09:40:48 +0100
commita3a659ba5cb26067c65983d97b3331eaf7b8a3fc (patch)
treeafefb0ea92561c9337d3d5e6fad5a9c9caf7fe11 /openbsc
parent445e615d03fd18f05401d094177f527af4a3c2cf (diff)
sms: Workaround a bug in the db layer and update the data
The sync with the database might fail. Reread the updated subscriber after we have written it. The source of this failure is unknown.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/sms_queue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/sms_queue.c b/openbsc/src/sms_queue.c
index 89daf1f0f..c03b369df 100644
--- a/openbsc/src/sms_queue.c
+++ b/openbsc/src/sms_queue.c
@@ -152,6 +152,9 @@ static void sms_pending_failed(struct gsm_sms_pending *pending, int paging_error
"Subscriber %llu is not reachable. Setting LAC=0.\n", pending->subscr->id);
pending->subscr->lac = GSM_LAC_RESERVED_DETACHED;
db_sync_subscriber(pending->subscr);
+
+ /* Workaround a failing sync */
+ db_subscriber_update(pending->subscr);
}
sms_pending_free(pending);