diff options
author | Eric Wong <e@80x24.org> | 2021-07-21 14:07:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-07-22 02:29:01 +0000 |
commit | a1539672716f91acc67397a1a7d16e99df068931 (patch) | |
tree | d6390fd87fbc107523591a1840937b30c58c707d /lib/PublicInbox/LeiNoteEvent.pm | |
parent | 5b4fde37adefa37508d131dbe013353ef3345051 (diff) | |
download | public-inbox-a1539672716f91acc67397a1a7d16e99df068931.tar.gz |
This makes behavior less surprising on restarts as we no longer lose state on restarts, so there's no need to manually run "lei add-watch" to re-enable watches. This also allows us to transparently handle changes if somebody edits the lei config file directly or via git-config(1).
Diffstat (limited to 'lib/PublicInbox/LeiNoteEvent.pm')
-rw-r--r-- | lib/PublicInbox/LeiNoteEvent.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiNoteEvent.pm b/lib/PublicInbox/LeiNoteEvent.pm index bf15cd26..d6511cf6 100644 --- a/lib/PublicInbox/LeiNoteEvent.pm +++ b/lib/PublicInbox/LeiNoteEvent.pm @@ -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'); } } |