aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-05 10:25:26 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-05 10:25:26 +0200
commitfe4f50298fe81bdf8b7664701c241f46ce80c3fd (patch)
treecb2e9b655bacdc483be4f2714aa3f90409696d29 /src
parent360fa41773651f9592c440d8fefe7748e6f1a1ce (diff)
resume curl download if we paused it before
Diffstat (limited to 'src')
-rw-r--r--src/gns/gnunet-gns-proxy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index 918c1d110e..84b8da04ab 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,