summaryrefslogtreecommitdiff
path: root/src/wispr.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-01-03 14:36:27 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-05 11:09:16 +0100
commit097f0059d972e639d75ac7d0b27db759fbf05e5c (patch)
treed7e76a3b7c2443586f03492ebe8dc2d9d25fdd76 /src/wispr.c
parentfc3d4097fcdbbcc6ca870ed24fec47bfb15ad90a (diff)
downloadconnman-097f0059d972e639d75ac7d0b27db759fbf05e5c.tar.gz
connman-097f0059d972e639d75ac7d0b27db759fbf05e5c.tar.bz2
connman-097f0059d972e639d75ac7d0b27db759fbf05e5c.zip
wispr: Retry online check for IPv6
Because IPv6 RA messages can come at any point when connection is established, we might do wispr check before possible IPv6 DNS RA is received so in that case wispr check could fail. If wispr check fails for IPv6 we try to do the check once (after waiting one second timeout) in a hope that system is configured properly during that period.
Diffstat (limited to 'src/wispr.c')
-rw-r--r--src/wispr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wispr.c b/src/wispr.c
index 85ee857f..31f4caa6 100644
--- a/src/wispr.c
+++ b/src/wispr.c
@@ -577,7 +577,9 @@ static gboolean wispr_portal_web_result(GWebResult *result, gpointer user_data)
goto done;
case 404:
- wispr_portal_error(wp_context);
+ if (__connman_service_online_check_failed(wp_context->service,
+ wp_context->type) == 0)
+ wispr_portal_error(wp_context);
break;
default: