---
 plugins/ofono.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/plugins/ofono.c b/plugins/ofono.c
index 2bf777d..060cd8e 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -1881,10 +1881,8 @@ static gboolean context_changed(DBusConnection 
*connection,
 
                if (active == FALSE)
                        set_connected(info, active);
-
-               /* Connect only if requested to do so */
-               if (active == TRUE &&
-                       connman_network_get_connecting(info->network) == TRUE)
+               else if (connman_network_get_connecting(info->network) == TRUE)
+                       /* Connect only if requested to do so */
                        set_connected(info, active);
        }
 
-- 
1.7.1

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to