summaryrefslogtreecommitdiff
path: root/vpn/plugins/vpn.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-30 09:30:37 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-30 13:01:18 (GMT)
commit75ee7a107b39753510bdf4692fd32d4754e9746f (patch)
tree90e5a6b156e66f2bff0beca89b6ad631cbd0eeec /vpn/plugins/vpn.c
parent6cca0f6840abec55b330a55b08364aa7f2840305 (diff)
downloadconnman-75ee7a107b39753510bdf4692fd32d4754e9746f.zip
connman-75ee7a107b39753510bdf4692fd32d4754e9746f.tar.gz
connman-75ee7a107b39753510bdf4692fd32d4754e9746f.tar.bz2
vpn: Make VPN plugin connection function async
This is needed as we want to ask user the passwords etc.
Diffstat (limited to 'vpn/plugins/vpn.c')
-rw-r--r--vpn/plugins/vpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpn/plugins/vpn.c b/vpn/plugins/vpn.c
index 66a75d2..a8603d9 100644
--- a/vpn/plugins/vpn.c
+++ b/vpn/plugins/vpn.c
@@ -412,7 +412,7 @@ static int vpn_connect(struct vpn_provider *provider,
ret = vpn_driver_data->vpn_driver->connect(provider, data->task,
data->if_name, cb, user_data);
- if (ret < 0) {
+ if (ret < 0 && ret != -EINPROGRESS) {
stop_vpn(provider);
connman_task_destroy(data->task);
data->task = NULL;