summaryrefslogtreecommitdiff
path: root/src/network.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-05-03 12:55:18 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-04 11:28:57 +0300
commit9e68b80433556b992f8514324aa376a4173379a8 (patch)
treee3cf964765d262db8c4c4a47d2f2774484ef07c8 /src/network.c
parent7ecde4e9621bc7814923d40b295f2c56291af006 (diff)
downloadconnman-9e68b80433556b992f8514324aa376a4173379a8.tar.gz
connman-9e68b80433556b992f8514324aa376a4173379a8.tar.bz2
connman-9e68b80433556b992f8514324aa376a4173379a8.zip
network: Set service as a userconnect when connecting a hidden network
This fixes when connecting to an hidden services fails, so the user will be asked to retry through agent api.
Diffstat (limited to 'src/network.c')
-rw-r--r--src/network.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network.c b/src/network.c
index f729e788..55c49f18 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1411,8 +1411,10 @@ int connman_network_connect_hidden(struct connman_network *network,
__connman_service_indicate_error(service,
CONNMAN_SERVICE_ERROR_INVALID_KEY);
return err;
- } else
+ } else {
+ __connman_service_set_userconnect(service, TRUE);
return __connman_service_connect(service);
+ }
}
/**