gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: resume curl download if we


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: resume curl download if we paused it before
Date: Tue, 05 Jun 2018 10:25:28 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new fe4f50298 resume curl download if we paused it before
fe4f50298 is described below

commit fe4f50298fe81bdf8b7664701c241f46ce80c3fd
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Jun 5 10:25:26 2018 +0200

    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,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]