From: Daniel Wagner <[email protected]>

---
 src/session.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/session.c b/src/session.c
index 0d48397..187db48 100644
--- a/src/session.c
+++ b/src/session.c
@@ -940,14 +940,14 @@ static void session_changed(struct connman_session 
*session,
 
                break;
        case CONNMAN_SESSION_TRIGGER_SERVICE:
-               switch (info->reason) {
-               case CONNMAN_SESSION_REASON_CONNECT:
-                       if (info->entry != NULL &&
-                                       (is_connecting(info->entry->state) == 
TRUE ||
+               if (info->entry != NULL &&
+                               (is_connecting(info->entry->state) == TRUE ||
                                        is_online(info->entry->state) == TRUE)) 
{
-                               break;
-                       }
+                       break;
+               }
 
+               switch (info->reason) {
+               case CONNMAN_SESSION_REASON_CONNECT:
                        /*
                         * We are not online, we are not connecting, that
                         * means we could still have a valid info->entry.
-- 
1.7.6

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

Reply via email to