summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xebus-racket/inserter.rkt1
1 files changed, 1 insertions, 0 deletions
diff --git a/ebus-racket/inserter.rkt b/ebus-racket/inserter.rkt
index c4a693b..c068e1c 100755
--- a/ebus-racket/inserter.rkt
+++ b/ebus-racket/inserter.rkt
@@ -47,6 +47,7 @@
(log-inserter-info (format "influxdb: ~a~n" (jsexpr->string data)))
(define input-port (post-impure-port (string->url (influxurl?)) (string->bytes/utf-8 (jsexpr->string data))))
(define server-response (read-line input-port))
+ (close-input-port input-port)
(log-inserter-info "Response: ~a" server-response))))
(define (handle-packet packet)