projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4a3bee
)
manager: Only defer result when enabling session mode
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Wed, 14 Sep 2011 13:16:34 +0000
(15:16 +0200)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Mon, 19 Sep 2011 08:44:15 +0000
(10:44 +0200)
When leaving the session mode we might be still online
so we should not wait for entering the idle state.
src/manager.c
patch
|
blob
|
history
diff --git
a/src/manager.c
b/src/manager.c
index
51d5ffa
..
2b34ea6
100644
(file)
--- 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;
}