]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Daemon.pm
imapd+nntpd: drop timer-based expiration
[public-inbox.git] / lib / PublicInbox / Daemon.pm
index 90b77412f96a06f3be0824d30868b5ff20b37550..505235864c0b22166841eb4c3b54c72f3e0abc29 100644 (file)
@@ -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;
                        }
                }