summaryrefslogtreecommitdiffstats
path: root/src/gprs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gprs.c')
-rw-r--r--src/gprs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gprs.c b/src/gprs.c
index acbfa563..b9e31057 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -2108,6 +2108,14 @@ void ofono_gprs_status_notify(struct ofono_gprs *gprs, int status)
return;
}
+ /*
+ * If we're already taking action, e.g. attaching or detaching, then
+ * ignore this notification for now, we will take appropriate action
+ * after the set_attach operation has completed
+ */
+ if (gprs->flags & GPRS_FLAG_ATTACHING)
+ return;
+
/* We registered without being powered */
if (gprs->powered == FALSE)
goto detach;