resume curl download if we paused it before
authorChristian Grothoff <christian@grothoff.org>
Tue, 5 Jun 2018 08:25:26 +0000 (10:25 +0200)
committerChristian Grothoff <christian@grothoff.org>
Tue, 5 Jun 2018 08:25:26 +0000 (10:25 +0200)
src/gns/gnunet-gns-proxy.c

index 918c1d110ea77aa59260ee9f77507343db36f582..84b8da04ab39d9e3c647af64dc1c3c89355a786e 100644 (file)
@@ -1431,6 +1431,12 @@ curl_upload_cb (void *buf,
        (SOCKS5_SOCKET_UPLOAD_DONE == s5r->state) )
   {
     s5r->state = SOCKS5_SOCKET_DOWNLOAD_STARTED;
+    if (GNUNET_YES == s5r->curl_paused)
+    {
+      s5r->curl_paused = GNUNET_NO;
+      curl_easy_pause (s5r->curl,
+                      CURLPAUSE_CONT);
+    }    
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "Completed CURL UPLOAD %s%s\n",
                 s5r->domain,