diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-07-17 11:19:37 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-17 11:19:37 +0200 |
commit | f56c6319d7d491834fddeff7be722ef5e46aa30a (patch) | |
tree | 826d27def58701d18eed8a0cbde7cf711cb909e8 | |
parent | 1f5356b3b5e325db10b02a2db42147bd2b1b3c69 (diff) | |
download | connman-f56c6319d7d491834fddeff7be722ef5e46aa30a.tar.gz connman-f56c6319d7d491834fddeff7be722ef5e46aa30a.tar.bz2 connman-f56c6319d7d491834fddeff7be722ef5e46aa30a.zip |
When network gets remove ensure to disconnect the service
-rw-r--r-- | src/profile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/profile.c b/src/profile.c index f6ab24b4..1fd3068d 100644 --- 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; |