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;