iface-modem: allow Command() while in Failed state

Allow the generic command API while in FAILED state, in case the modem
integrator has some special commands to recover the device.

Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/163
This commit is contained in:
Aleksander Morgado
2019-12-03 09:20:24 +00:00
parent 03e6375a95
commit 28869463a1
-5
View File
@@ -749,11 +749,6 @@ handle_command_auth_ready (MMBaseModem *self,
return;
}
if (abort_invocation_if_state_not_reached (ctx->self, ctx->invocation, MM_MODEM_STATE_LOCKED)) {
handle_command_context_free (ctx);
return;
}
#if ! defined WITH_AT_COMMAND_VIA_DBUS
/* If we are not in Debug mode, report an error */
if (!mm_context_get_debug ()) {