From e401fede7c61a570a56fac447cd3b00b636e6d2d Mon Sep 17 00:00:00 2001 From: Rawley Date: Sun, 5 Nov 2023 08:13:11 -0600 Subject: [PATCH] Clean up + bump version --- META6.json | 2 +- lib/Humming-Bird/HTTPServer.rakumod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/META6.json b/META6.json index 2403432..c133ea4 100644 --- a/META6.json +++ b/META6.json @@ -42,5 +42,5 @@ "Test::Util::ServerPort", "Cro::HTTP::Client" ], - "version": "2.1.7" + "version": "2.2.0" } diff --git a/lib/Humming-Bird/HTTPServer.rakumod b/lib/Humming-Bird/HTTPServer.rakumod index 9368d81..b5e1832 100644 --- a/lib/Humming-Bird/HTTPServer.rakumod +++ b/lib/Humming-Bird/HTTPServer.rakumod @@ -21,7 +21,7 @@ class Humming-Bird::HTTPServer is export { $!lock.protect({ @!connections = @!connections.grep({ !$_.defined }); # Remove dead connections for @!connections.grep({ now - $_ >= $!timeout }) { - try { + { $_ = True; $_.write(Blob.new); $_.close;