diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-09-14 15:16:34 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-09-19 10:44:15 +0200 |
commit | e2f110a995f7a733dcdaed56e3ed78ba85d519d8 (patch) | |
tree | 09e719527844585766959f3bd4d676cf043cab71 /src/manager.c | |
parent | f4a3beeee9c649569e92523e9ae6715da9c40bba (diff) | |
download | connman-e2f110a995f7a733dcdaed56e3ed78ba85d519d8.tar.gz connman-e2f110a995f7a733dcdaed56e3ed78ba85d519d8.tar.bz2 connman-e2f110a995f7a733dcdaed56e3ed78ba85d519d8.zip |
manager: Only defer result when enabling session mode
When leaving the session mode we might be still online
so we should not wait for entering the idle state.
Diffstat (limited to 'src/manager.c')
-rw-r--r-- | src/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c index 51d5ffa7..2b34ea6f 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; } |