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:
1f5356b
)
When network gets remove ensure to disconnect the service
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 17 Jul 2009 09:19:37 +0000
(11:19 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 17 Jul 2009 09:19:37 +0000
(11:19 +0200)
src/profile.c
patch
|
blob
|
history
diff --git
a/src/profile.c
b/src/profile.c
index
f6ab24b
..
1fd3068
100644
(file)
--- a/
src/profile.c
+++ b/
src/profile.c
@@
-141,6
+141,8
@@
int __connman_profile_remove_device(struct connman_device *device)
if (service == NULL)
return -EINVAL;
+ __connman_service_disconnect(service);
+
__connman_service_put(service);
return 0;
@@
-169,6
+171,8
@@
int __connman_profile_remove_network(struct connman_network *network)
if (service == NULL)
return -EINVAL;
+ __connman_service_disconnect(service);
+
__connman_service_put(service);
return 0;