[PATCH v3 35/42] vpn-plugin: Set state correctly if vpn client process cannot be started

Jukka Rissanen jukka.rissanen at linux.intel.com
Wed Nov 7 03:49:01 PST 2012


---
 vpn/plugins/vpn.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vpn/plugins/vpn.c b/vpn/plugins/vpn.c
index 3b0fd3a..df030b0 100644
--- a/vpn/plugins/vpn.c
+++ b/vpn/plugins/vpn.c
@@ -159,6 +159,8 @@ vpn_exit:
 			ret = VPN_PROVIDER_ERROR_UNKNOWN;
 
 		vpn_provider_indicate_error(provider, ret);
+
+		vpn_provider_set_state(provider, VPN_PROVIDER_STATE_FAILURE);
 	} else
 		vpn_provider_set_state(provider, VPN_PROVIDER_STATE_IDLE);
 
-- 
1.7.11.4




More information about the connman mailing list