call gprs_detached_notify

This commit is contained in:
Alexander Couzens 2017-08-22 13:47:48 +02:00 committed by Pau Espin Pedrol
parent a826ee1134
commit 5326d5d19d
1 changed files with 3 additions and 0 deletions

View File

@ -2544,6 +2544,9 @@ void ofono_gprs_status_notify(struct ofono_gprs *gprs, int status)
gprs->status = status;
if (status == 0)
ofono_gprs_detached_notify(gprs);
if (status != NETWORK_REGISTRATION_STATUS_REGISTERED &&
status != NETWORK_REGISTRATION_STATUS_ROAMING) {
gprs_attached_update(gprs);