summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-03-07 18:13:42 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-08 13:50:10 +0200
commit6d847720ad07fab922b8166a1e8fa31e7ef49231 (patch)
treeca31c96c19816dcd133ca457b515b2deb8e2a87f /plugins
parentb009ede1dbc6b9831a33bff87f73f1c917784fa0 (diff)
downloadconnman-6d847720ad07fab922b8166a1e8fa31e7ef49231.tar.gz
connman-6d847720ad07fab922b8166a1e8fa31e7ef49231.tar.bz2
connman-6d847720ad07fab922b8166a1e8fa31e7ef49231.zip
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 f60a658b..cda0c1bb 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;
}