summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-05-02 16:46:06 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-04 11:09:22 +0300
commit4bf3d238249265c2009f535c40050d9a33bde226 (patch)
tree6595d8f7d4dcb248ca619c47d95ecac899fe12b2
parent68cb4891010f9fbf682d6a089f3b37b435e55264 (diff)
downloadconnman-4bf3d238249265c2009f535c40050d9a33bde226.tar.gz
connman-4bf3d238249265c2009f535c40050d9a33bde226.tar.bz2
connman-4bf3d238249265c2009f535c40050d9a33bde226.zip
wispr: Set gweb debug at the right place
-rw-r--r--src/wispr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wispr.c b/src/wispr.c
index f44a21ae..08153301 100644
--- a/src/wispr.c
+++ b/src/wispr.c
@@ -726,9 +726,6 @@ static void proxy_callback(const char *proxy, void *user_data)
wp_context->token = 0;
- if (getenv("CONNMAN_WEB_DEBUG"))
- g_web_set_debug(wp_context->web, web_debug, "WEB");
-
if (proxy != NULL && g_strcmp0(proxy, "DIRECT") != 0)
g_web_set_proxy(wp_context->web, proxy);
@@ -809,6 +806,9 @@ static int wispr_portal_detect(struct connman_wispr_portal_context *wp_context)
goto done;
}
+ if (getenv("CONNMAN_WEB_DEBUG"))
+ g_web_set_debug(wp_context->web, web_debug, "WEB");
+
if (wp_context->type == CONNMAN_IPCONFIG_TYPE_IPV4) {
g_web_set_address_family(wp_context->web, AF_INET);
wp_context->status_url = STATUS_URL_IPV4;