From: Kaj-Michael Lang Date: Fri, 1 Aug 2008 11:19:27 +0000 (+0300) Subject: Fix initial download startup if using conic X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a034544ff981849a5c8e842c79d31271a075ad9b;p=mapper Fix initial download startup if using conic --- diff --git a/src/iap.c b/src/iap.c index 61d243b..225bb46 100644 --- a/src/iap.c +++ b/src/iap.c @@ -148,6 +148,8 @@ switch (status) { g_printf("Connected\n"); iap_connected=TRUE; iap_connecting=FALSE; + if (!_curl_sid) + _curl_sid = g_timeout_add(100, (GSourceFunc)map_download_timeout, NULL); break; case CON_IC_STATUS_DISCONNECTED: g_printf("Disconnected\n"); @@ -173,7 +175,6 @@ if (connection==NULL) { } if (iap_connecting==TRUE) return TRUE; -g_printf("Requesting connection\n"); iap_connecting=TRUE; return con_ic_connection_connect(connection, CON_IC_CONNECT_FLAG_NONE); }