diff options
author | Eric Wong <e@80x24.org> | 2019-06-28 18:55:09 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-29 19:59:00 +0000 |
commit | 945ef964037cbac81bf8fdea269037098da094f9 (patch) | |
tree | d7c6320aa7796fe3ec482b788d1c22a86db8c4d2 /lib/PublicInbox/ParentPipe.pm | |
parent | 7344d5bb292a29b52b574dfb09542e3290430afd (diff) | |
download | public-inbox-945ef964037cbac81bf8fdea269037098da094f9.tar.gz |
parentpipe: make the ->close call more obvious
We can close directly in event_step without bad side effects, and then we also don't need to take a reason arg from worker_quit, since we weren't logging it anywhere.
Diffstat (limited to 'lib/PublicInbox/ParentPipe.pm')
-rw-r--r-- | lib/PublicInbox/ParentPipe.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/ParentPipe.pm b/lib/PublicInbox/ParentPipe.pm index 6ef51c1a..2e2abb5f 100644 --- a/lib/PublicInbox/ParentPipe.pm +++ b/lib/PublicInbox/ParentPipe.pm @@ -19,6 +19,9 @@ sub new ($$$) { } # master process died, time to call worker_quit ourselves -sub event_step { $_[0]->{cb}->($_[0]) } +sub event_step { + $_[0]->close; # PublicInbox::DS::close + $_[0]->{cb}->(); +} 1; |