From fe4f50298fe81bdf8b7664701c241f46ce80c3fd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 5 Jun 2018 10:25:26 +0200 Subject: [PATCH] resume curl download if we paused it before --- src/gns/gnunet-gns-proxy.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 918c1d110..84b8da04a 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -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, -- 2.25.1