summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com>2015-05-18 19:07:45 +0200
committerDenis Kenzior <denkenz@gmail.com>2015-05-18 12:13:04 -0500
commite70afdd9dc63df553d6a033265dbf800d0d84481 (patch)
tree81b195ee004759a6ad8dfc2617802f13050b3bae /src
parent1edb6eec9b69bf9744f84e1e173e4fbc80aee735 (diff)
downloadofono-e70afdd9dc63df553d6a033265dbf800d0d84481.tar.bz2
gprs: Add comment to gprs_reset_contexts
Diffstat (limited to 'src')
-rw-r--r--src/gprs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gprs.c b/src/gprs.c
index 9c15abfa..f21fe6e2 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -2318,6 +2318,11 @@ static DBusMessage *gprs_reset_contexts(DBusConnection *conn,
if (gprs->pending)
return __ofono_error_busy(msg);
+ /*
+ * We want __ofono_error_busy to take precedence over
+ * __ofono_error_not_allowed errors, so we check it first.
+ */
+
for (l = gprs->contexts; l; l = l->next) {
struct pri_context *ctx = l->data;