]> err.no Git - mapper/commitdiff
Fix initial download startup if using conic
authorKaj-Michael Lang <milang@tal.org>
Fri, 1 Aug 2008 11:19:27 +0000 (14:19 +0300)
committerKaj-Michael Lang <milang@tal.org>
Fri, 1 Aug 2008 11:19:27 +0000 (14:19 +0300)
src/iap.c

index 61d243be517e89889093eb51fea772966451e8a8..225bb465dcc6988303d4f4119deca18f0306528d 100644 (file)
--- 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);
 }