From 571b01059c6bfbd594e5f4c395827ed83e419182 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 22 Aug 2017 13:47:48 +0200 Subject: [PATCH] call gprs_detached_notify --- src/gprs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gprs.c b/src/gprs.c index 420c96f9..3f7e530a 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -2601,6 +2601,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);