Setting the state of the disconnected VPN service
to IDLE instead of leaving it to DISCONNECTED.
Now it behaves the same way as the service that is
disconnected by ConnMan daemon.
Reported by Jaakko Hannikainen.
---
src/provider.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/provider.c b/src/provider.c
index d5ce825..0726f4a 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -148,6 +148,10 @@ int connman_provider_disconnect(struct connman_provider
*provider)
return -EINPROGRESS;
}
+ if (provider->vpn_service)
+ provider_indicate_state(provider,
+ CONNMAN_SERVICE_STATE_IDLE);
+
return 0;
}
--
2.1.0
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman