summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-03-07 16:13:42 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-08 11:50:10 (GMT)
commit6d847720ad07fab922b8166a1e8fa31e7ef49231 (patch)
treeca31c96c19816dcd133ca457b515b2deb8e2a87f /plugins
parentb009ede1dbc6b9831a33bff87f73f1c917784fa0 (diff)
downloadconnman-6d847720ad07fab922b8166a1e8fa31e7ef49231.zip
connman-6d847720ad07fab922b8166a1e8fa31e7ef49231.tar.gz
connman-6d847720ad07fab922b8166a1e8fa31e7ef49231.tar.bz2
vpn: Remove VPN provider from service list when destroying it
When provider is destroyed in vpnd, we get a notification about that. We must then remove the provider which will also unref it so the provider data will get removed properly. Old code just unreffed the provider but it was left hanging in service list.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/vpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/vpn.c b/plugins/vpn.c
index f60a658..cda0c1b 100644
--- a/plugins/vpn.c
+++ b/plugins/vpn.c
@@ -1440,7 +1440,7 @@ static void destroy_provider(struct connection_data *data)
connman_provider_set_data(data->provider, NULL);
- connman_provider_put(data->provider);
+ connman_provider_remove(data->provider);
data->provider = NULL;
}