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. --- plugins/vpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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; } -- 1.7.11.4 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman