about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--public-inbox-nntpd3
1 files changed, 1 insertions, 2 deletions
diff --git a/public-inbox-nntpd b/public-inbox-nntpd
index 70bab46f..9fb69cec 100644
--- a/public-inbox-nntpd
+++ b/public-inbox-nntpd
@@ -204,8 +204,7 @@ sub worker_quit {
                 my $n = 0;
 
                 foreach my $s (values %$dmap) {
-                        next unless ref($s) eq 'PublicInbox::NNTP';
-                        if ($s->busy) {
+                        if ($s->can('busy') && $s->busy) {
                                 ++$n;
                         } else {
                                 $s->close;