This may make it less likely for watch-dependent tests to get
stuck. Unfortunately, due to the synchronous API of
Mail::IMAPClient, ->idle is still susceptible to missing
signals.
my $end = now() + $intvl;
warn "I: $uri idling for ${intvl}s\n";
local $0 = "IDLE $0";
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: $!";
unless ($mic->idle) {
return if $self->{quit};
return "E: IDLE failed on $uri: $!";