Close body port regardless of status
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 26 Nov 2021 15:53:36 +0000 (10:53 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 26 Nov 2021 15:53:36 +0000 (10:53 -0500)
info.rkt
tt.rkt

index be8a842..c4efb57 100644 (file)
--- a/info.rkt
+++ b/info.rkt
@@ -6,7 +6,7 @@
 (define pkg-desc
   "twtxt client")
 (define version
-  "0.22.0")
+  "0.22.1")
 (define pkg-authors
   '("Siraaj Khandkar <siraaj@khandkar.net>"))
 (define deps
diff --git a/tt.rkt b/tt.rkt
index abb8b4a..f69df52 100644 (file)
--- a/tt.rkt
+++ b/tt.rkt
                (when etag
                  (display-to-file etag cached-etag-path #:exists 'replace))
                (when lmod
-                 (display-to-file lmod cached-lmod-path #:exists 'replace))))
-           (close-input-port body-input))]
+                 (display-to-file lmod cached-lmod-path #:exists 'replace)))))]
        [_
-         (log-error "HTTP error URL:~a  status:~a" u-str status)])]))
+         (log-error "HTTP error URL:~a  status:~a" u-str status)])
+     (close-input-port body-input)]))
 
 (: timeline-print (-> Out-Format (Listof Msg) Void))
 (define (timeline-print out-format timeline)
This page took 0.023834 seconds and 4 git commands to generate.