iptables: Refactoring how jumps are handled
[framework/connectivity/connman.git] / src / manager.c
index 51d5ffa..2b34ea6 100644 (file)
@@ -130,7 +130,7 @@ static DBusMessage *set_property(DBusConnection *conn,
 
                __connman_session_set_mode(sessionmode);
 
-               if (connman_state_idle == FALSE) {
+               if (sessionmode == TRUE && connman_state_idle == FALSE) {
                        session_mode_pending = msg;
                        return NULL;
                }