}
sub stop_idle ($$) {
- my ($self, $ibx);
+ my ($self, $ibx) = @_;
my $sock = $self->{sock} or return;
my $fd = fileno($sock);
delete $IDLERS->{$fd};
# for graceful shutdown in PublicInbox::Daemon:
sub busy {
my ($self, $now) = @_;
+ if (defined($self->{-idle_tag})) {
+ $self->write(\"* BYE server shutting down\r\n");
+ return; # not busy anymore
+ }
($self->{rbuf} || $self->{wbuf} || $self->not_idle_long($now));
}