Commit 408d2627 authored by Jussi Laakkonen's avatar Jussi Laakkonen

[vpn] Explicitely remove VPN service if provider removed. Fixes JB#42797

Remove VPN service from service.c service_list explicitely by using
__connman_service_remove() when provider is to be removed. In our fork
it is not enough to call unref() for the service as list has a weak
reference for each. Because of thid difference explicit removal is
required in order to remove the VPN completely instead of haunting in
the service_list.
parent 4ec90c8e
......@@ -634,6 +634,7 @@ static void unregister_provider(gpointer data)
if (provider->vpn_service) {
connman_service_unref(provider->vpn_service);
__connman_service_remove(provider->vpn_service);
provider->vpn_service = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment