diff options
author | Eric Wong <e@80x24.org> | 2016-06-18 10:51:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-18 21:48:34 +0000 |
commit | 26d8524281b1461a3a7e4a19f0db3180228f2877 (patch) | |
tree | 5179e72ea362b1ecb01395e685542f4254835a91 /lib/PublicInbox/Daemon.pm | |
parent | e748f75979046724ead380bd00eadc677bdc07e9 (diff) | |
download | public-inbox-26d8524281b1461a3a7e4a19f0db3180228f2877.tar.gz |
We do not need to count the httpd.async object against our running client count, that is tied to the socket of the actual client. This prevents misleading sysadmins about connected clients during shutdown.
Diffstat (limited to 'lib/PublicInbox/Daemon.pm')
-rw-r--r-- | lib/PublicInbox/Daemon.pm | 3 |
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 |