summaryrefslogtreecommitdiff
path: root/vpn/plugins/vpn.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-12 14:07:51 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-23 12:58:52 +0200
commit64308ada36e2d65610a2431e67b67d2ad7abe98c (patch)
treee2b8cfc11cc8a9c9e33e3a3e35c06b46bbd71205 /vpn/plugins/vpn.c
parent13f0741726c7710e998de0c9c8384e0f0279f99d (diff)
downloadconnman-64308ada36e2d65610a2431e67b67d2ad7abe98c.tar.gz
connman-64308ada36e2d65610a2431e67b67d2ad7abe98c.tar.bz2
connman-64308ada36e2d65610a2431e67b67d2ad7abe98c.zip
vpn-plugin: Set state correctly if vpn client process cannot be started
Diffstat (limited to 'vpn/plugins/vpn.c')
-rw-r--r--vpn/plugins/vpn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vpn/plugins/vpn.c b/vpn/plugins/vpn.c
index 3b0fd3a6..df030b01 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);