about summary refs log tree commit homepage
path: root/public-inbox-nntpd
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-24 03:37:18 +0000
committerEric Wong <e@80x24.org>2015-09-24 06:58:31 +0000
commit812b9991ac21cbba7d9e60cb5a9e06a9fb69351d (patch)
tree018f5f6800c56689aed245eaff86c5ea9b3c30fb /public-inbox-nntpd
parent5e3247dc8d3844f2771dba6b5d316089f49ff40e (diff)
downloadpublic-inbox-812b9991ac21cbba7d9e60cb5a9e06a9fb69351d.tar.gz
This is better encapsulated and hopefully more readable.
While we're at it, check for being inside a long response, too.
Diffstat (limited to 'public-inbox-nntpd')
-rw-r--r--public-inbox-nntpd2
1 files changed, 1 insertions, 1 deletions
diff --git a/public-inbox-nntpd b/public-inbox-nntpd
index 4c156080..70bab46f 100644
--- a/public-inbox-nntpd
+++ b/public-inbox-nntpd
@@ -205,7 +205,7 @@ sub worker_quit {
 
                 foreach my $s (values %$dmap) {
                         next unless ref($s) eq 'PublicInbox::NNTP';
-                        if ($s->{write_buf_size} || $s->{rbuf}) {
+                        if ($s->busy) {
                                 ++$n;
                         } else {
                                 $s->close;