[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#32837] [PATCH 2/5] substitute: Progress port really closes underlyi
From: |
Ludovic Courtès |
Subject: |
[bug#32837] [PATCH 2/5] substitute: Progress port really closes underlying port. |
Date: |
Tue, 25 Sep 2018 17:32:21 +0200 |
* guix/scripts/substitute.scm (progress-report-port): Use 'close-port'
instead of 'close-connection'. Move 'stop' call first.
---
guix/scripts/substitute.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 6d31dfdaa..50c6a2206 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -837,8 +837,8 @@ REPORTER, which should be a <progress-reporter> object."
(make-custom-binary-input-port "progress-port-proc"
read! #f #f
(lambda ()
- (close-connection port)
- (stop)))))))
+ (stop)
+ (close-port port)))))))
(define-syntax with-networking
(syntax-rules ()
--
2.19.0