projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
326a601
)
session: Disconnect on destroy if needed
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Thu, 11 Aug 2011 14:56:17 +0000
(16:56 +0200)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Thu, 11 Aug 2011 15:40:52 +0000
(17:40 +0200)
src/session.c
patch
|
blob
|
history
diff --git
a/src/session.c
b/src/session.c
index
f075053
..
da9162c
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-1228,6
+1228,8
@@
static int session_disconnect(struct connman_session *session)
g_dbus_unregister_interface(connection, session->session_path,
CONNMAN_SESSION_INTERFACE);
+ test_and_disconnect(session);
+
g_hash_table_remove(session_hash, session->session_path);
return 0;