From: Daniel Wagner <[email protected]>
When leaving the session mode we might be still online
so we should not wait for entering the idle state.
---
src/manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/manager.c b/src/manager.c
index 51d5ffa..2b34ea6 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -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;
}
--
1.7.6
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman