]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiNoteEvent.pm
lei: auto-refresh watches in config, cancel missing
[public-inbox.git] / lib / PublicInbox / LeiNoteEvent.pm
index bf15cd26feeb039528157892bb4571255aa5e9ee..d6511cf6cd1bb750d9bfe33d874c243510dae68b 100644 (file)
@@ -14,7 +14,7 @@ sub flush_lei ($) {
        my ($lei) = @_;
        if (my $lne = delete $lei->{cfg}->{-lei_note_event}) {
                $lne->wq_close(1, undef, $lei); # runs _lei_wq_eof;
-       } else { # lms_clear_src calls only:
+       } elsif ($lei->{sto}) { # lms_clear_src calls only:
                my $wait = $lei->{sto}->ipc_do('done');
        }
 }