about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Watch.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm
index b48d9ccc..e80bbdec 100644
--- a/lib/PublicInbox/Watch.pm
+++ b/lib/PublicInbox/Watch.pm
@@ -330,6 +330,7 @@ sub imap_idle_once ($$$$) {
         my $end = now() + $intvl;
         warn "I: $uri idling for ${intvl}s\n";
         local $0 = "IDLE $0";
+        return if $self->{quit};
         unless ($mic->idle) {
                 return if $self->{quit};
                 return "E: IDLE failed on $uri: $!";