From e70afdd9dc63df553d6a033265dbf800d0d84481 Mon Sep 17 00:00:00 2001 From: Alfonso Sanchez-Beato Date: Mon, 18 May 2015 19:07:45 +0200 Subject: gprs: Add comment to gprs_reset_contexts --- src/gprs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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; -- cgit v1.2.3