--- src/technology.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/technology.c b/src/technology.c index 502cd60..f8443dd 100644 --- a/src/technology.c +++ b/src/technology.c @@ -650,7 +650,10 @@ static DBusMessage *set_powered(struct connman_technology *technology, DBusMessage *msg, connman_bool_t powered) { DBusMessage *reply = NULL; - int err; + int err = 0; + + if (technology->hardblocked == TRUE) + goto make_reply; if (powered == TRUE) err = technology_enable(technology, FALSE); @@ -662,6 +665,7 @@ static DBusMessage *set_powered(struct connman_technology *technology, technology_save(technology); } +make_reply: if (err == -EINPROGRESS) { technology->pending_reply = dbus_message_ref(msg); technology->pending_timeout = g_timeout_add_seconds(10, -- 1.7.12 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman