about summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-09-17 08:31:22 +0000
committerEric Wong <e@80x24.org>2019-09-17 08:31:47 +0000
commit1b5b98eb0fb8f9470a94696dc7240bc9adbf402c (patch)
tree66f723776ddb93362acb96efadd553d691c90ec3
parentdce9ca5f952b0fe50caa2ac4e59c85139a17cfca (diff)
downloadpublic-inbox-1b5b98eb0fb8f9470a94696dc7240bc9adbf402c.tar.gz
And explain why we need to do that delete in a comment.
-rw-r--r--lib/PublicInbox/HTTP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm
index b43ef870..cd95f4ab 100644
--- a/lib/PublicInbox/HTTP.pm
+++ b/lib/PublicInbox/HTTP.pm
@@ -255,7 +255,7 @@ sub next_request ($) {
 sub response_done_cb ($$) {
         my ($self, $alive) = @_;
         sub {
-                my $env = delete $self->{env};
+                delete $self->{env}; # we're no longer busy
                 $self->write(\"0\r\n\r\n") if $alive == 2;
                 $self->write($alive ? \&next_request : \&close);
         }