diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2011-12-02 13:55:37 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-12-12 10:44:39 +0100 |
commit | a8309eb056d7763ad2b5f188df3cb64b5eaa2132 (patch) | |
tree | 9e72e6588a8a7e60d606218fe4a4390688746282 /src | |
parent | b0cb897fe9fc4d29b07eb1356d61f641cbe594a1 (diff) | |
download | connman-a8309eb056d7763ad2b5f188df3cb64b5eaa2132.tar.gz connman-a8309eb056d7763ad2b5f188df3cb64b5eaa2132.tar.bz2 connman-a8309eb056d7763ad2b5f188df3cb64b5eaa2132.zip |
service: Disconnect network when service is freed
Call __connman_network_disconnect() when a service is freed.
This prevents wpa_supplicant from trying to connect forever when
ConnMan is shut down.
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index fe4b51bc..41110709 100644 --- a/src/service.c +++ b/src/service.c @@ -3464,6 +3464,7 @@ static void service_free(gpointer user_data) g_hash_table_destroy(service->counter_table); if (service->network != NULL) { + __connman_network_disconnect(service->network); if (service->network_created == TRUE) connman_network_unref(service->network); } |