ofono_modem_remove() already disables the modem.
---
 plugins/hfp.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/plugins/hfp.c b/plugins/hfp.c
index 867b194..2d0faa8 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -397,9 +397,6 @@ static DBusMessage *hfp_agent_release(DBusConnection *conn, 
DBusMessage *msg, vo
 {
        struct ofono_modem *modem = data;
 
-       if (ofono_modem_get_powered(modem))
-               hfp_disable(modem);
-
        ofono_modem_remove(modem);
 
        return dbus_message_new_method_return(msg);
-- 
1.6.4.4

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to