summaryrefslogtreecommitdiffstats
path: root/src/call-forwarding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/call-forwarding.c')
-rw-r--r--src/call-forwarding.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/call-forwarding.c b/src/call-forwarding.c
index 9ca5a549..f43772a6 100644
--- a/src/call-forwarding.c
+++ b/src/call-forwarding.c
@@ -701,12 +701,12 @@ static DBusMessage *cf_disable_all(DBusConnection *conn, DBusMessage *msg,
const char *strtype;
int type;
- if (cf->pending)
- return __ofono_error_busy(msg);
-
if (!cf->driver->erasure)
return __ofono_error_not_implemented(msg);
+ if (cf->pending)
+ return __ofono_error_busy(msg);
+
if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &strtype,
DBUS_TYPE_INVALID) == FALSE)
return __ofono_error_invalid_args(msg);