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.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm
index 90b77412..50523586 100644
--- a/lib/PublicInbox/Daemon.pm
+++ b/lib/PublicInbox/Daemon.pm
@@ -271,13 +271,11 @@ sub worker_quit { # $_[0] = signal name or number (unused)
                 my ($dmap, undef) = @_;
                 my $n = 0;
                 my $now = now();
-
-                foreach my $s (values %$dmap) {
+                for my $s (values %$dmap) {
                         $s->can('busy') or next;
-                        if ($s->busy($now)) {
+                        if ($s->busy) {
                                 ++$n;
-                        } else {
-                                # close as much as possible, early as possible
+                        } else { # close as much as possible, early as possible
                                 $s->close;
                         }
                 }