]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: drop workers on EOF from clients
authorEric Wong <e@80x24.org>
Sun, 4 Jul 2021 19:35:54 +0000 (19:35 +0000)
committerEric Wong <e@80x24.org>
Mon, 5 Jul 2021 09:15:48 +0000 (09:15 +0000)
Sometimes a user will be bored waiting for a command to finish,
so ensure we drop disconnect workers in this case.

lib/PublicInbox/LEI.pm

index 42e02efb58e045e92a394a4357092133ccaab1e4..a9f5edaebe4efad8cac852874a7adaba31208c66 100644 (file)
@@ -1095,6 +1095,7 @@ sub event_step {
                        }
                        die "unrecognized client signal: $buf";
                }
+               _drop_wq($self); # EOF, client disconnected
                dclose($self);
        };
        if (my $err = $@) {