about summary refs log tree commit homepage
path: root/lib/PublicInbox/Daemon.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Daemon.pm')
-rw-r--r--lib/PublicInbox/Daemon.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm
index b76b9ffb..a25dd90f 100644
--- a/lib/PublicInbox/Daemon.pm
+++ b/lib/PublicInbox/Daemon.pm
@@ -180,7 +180,8 @@ sub worker_quit {
                 my $n = 0;
 
                 foreach my $s (values %$dmap) {
-                        if ($s->can('busy') && $s->busy) {
+                        $s->can('busy') or next;
+                        if ($s->busy) {
                                 ++$n;
                         } else {
                                 # close as much as possible, early as possible