From 4bf3d238249265c2009f535c40050d9a33bde226 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Wed, 2 May 2012 16:46:06 +0300 Subject: wispr: Set gweb debug at the right place --- src/wispr.c | 6 +++--- 1 file 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; -- cgit v1.2.3