substitute: Progress port really closes underlying port.
authorLudovic Courtès <ludo@gnu.org>
Tue, 25 Sep 2018 10:28:55 +0000 (12:28 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 25 Sep 2018 16:45:50 +0000 (18:45 +0200)
* guix/scripts/substitute.scm (progress-report-port): Use 'close-port'
instead of 'close-connection'.  Move 'stop' call first.

guix/scripts/substitute.scm

index 6d31dfd..50c6a22 100755 (executable)
@@ -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 ()