projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc29a97
)
session: Send SessionMode property change message
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Tue, 31 Jan 2012 15:41:51 +0000
(16:41 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 31 Jan 2012 23:28:34 +0000
(
00:28
+0100)
src/session.c
patch
|
blob
|
history
diff --git
a/src/session.c
b/src/session.c
index
83cdaf0
..
4b72962
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-1698,7
+1698,13
@@
void __connman_session_set_mode(connman_bool_t enable)
{
DBG("enable %d", enable);
- sessionmode = enable;
+ if (sessionmode != enable) {
+ sessionmode = enable;
+
+ connman_dbus_property_changed_basic(CONNMAN_MANAGER_PATH,
+ CONNMAN_MANAGER_INTERFACE, "SessionMode",
+ DBUS_TYPE_BOOLEAN, &sessionmode);
+ }
if (sessionmode == TRUE)
__connman_service_disconnect_all();