diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-11-30 11:30:37 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-11-30 15:01:18 +0200 |
commit | 75ee7a107b39753510bdf4692fd32d4754e9746f (patch) | |
tree | 90e5a6b156e66f2bff0beca89b6ad631cbd0eeec /vpn/plugins | |
parent | 6cca0f6840abec55b330a55b08364aa7f2840305 (diff) | |
download | connman-75ee7a107b39753510bdf4692fd32d4754e9746f.tar.gz connman-75ee7a107b39753510bdf4692fd32d4754e9746f.tar.bz2 connman-75ee7a107b39753510bdf4692fd32d4754e9746f.zip |
vpn: Make VPN plugin connection function async
This is needed as we want to ask user the passwords etc.
Diffstat (limited to 'vpn/plugins')
-rw-r--r-- | vpn/plugins/vpn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vpn/plugins/vpn.c b/vpn/plugins/vpn.c index 66a75d2a..a8603d92 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; |