]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Mbox.pm
mbox: close file handle for single mbox
[public-inbox.git] / lib / PublicInbox / Mbox.pm
index 38ea5d86f8ccbce6eca87147e6956f5398e786c5..19c18ac437449e79a206767395cfb5cd8957df64 100644 (file)
@@ -22,6 +22,7 @@ sub emit1 {
                # single message should be easily renderable in browsers
                my $fh = $response->([200, ['Content-Type'=>'text/plain']]);
                emit_msg($fh, $simple);
+               $fh->close;
        }
 }