]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/HTTP.pm
imapd+nntpd: drop timer-based expiration
[public-inbox.git] / lib / PublicInbox / HTTP.pm
index 8a89dd73b031e56fcb3bd1440026299d1a3f0e52..8057481d1ce5629d17b0001d64d0f8f18d321304 100644 (file)
@@ -459,10 +459,9 @@ sub close {
        $self->SUPER::close; # PublicInbox::DS::close
 }
 
-# for graceful shutdown in PublicInbox::Daemon:
-sub busy () {
+sub busy { # for graceful shutdown in PublicInbox::Daemon:
        my ($self) = @_;
-       ($self->{rbuf} || exists($self->{env}) || $self->{wbuf});
+       defined($self->{rbuf}) || exists($self->{env}) || defined($self->{wbuf})
 }
 
 # runs $cb on the next iteration of the event loop at earliest