summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-03-28 22:04:01 +0200
committerLudovic Courtès <ludo@gnu.org>2021-03-28 22:30:59 +0200
commit673e5276f6b4dda4bfa9dd5bb70220fc8b17abd2 (patch)
treeddcb7813ac015228b02bda69df96eb08836c0cbf
parent58452d08ff3e0044e9a32e6d5b3663cf185d8b33 (diff)
downloadguix-673e5276f6b4dda4bfa9dd5bb70220fc8b17abd2.tar.gz
http-client: Don't drop failed query when reconnecting.
Reported by Christopher Baines <mail@cbaines.net>.

* guix/http-client.scm (http-multiple-get): Change 2nd argument to
'drop' to PROCESSED when (false-if-networking-error ...) returns #f.
-rw-r--r--guix/http-client.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/http-client.scm b/guix/http-client.scm
index 99bbccafd6..a2e11a1b73 100644
--- a/guix/http-client.scm
+++ b/guix/http-client.scm
@@ -250,7 +250,7 @@ returning."
              (#f
               (close-port p)
               (connect #f                         ; try again
-                       (drop requests (+ 1 processed))
+                       (drop requests processed)
                        result)))))))))