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.
This commit is contained in:
Holger Hans Peter Freyther
2010-12-25 16:53:24 +01:00
parent 445e615d03
commit a3a659ba5c

View File

@@ -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);