diff options
author | Eric Wong <e@80x24.org> | 2021-03-04 17:03:12 +0800 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-04 14:29:38 -0400 |
commit | d74c4c9c2802b88a627dbc55e8e10cbc57e82b1d (patch) | |
tree | e2a138353b647ff11a19b2c13bf9da2c5cce5b82 | |
parent | 1d0616b4ee744185ef6c1ff8672ea4521497406a (diff) | |
download | public-inbox-d74c4c9c2802b88a627dbc55e8e10cbc57e82b1d.tar.gz |
It's possible we'll hit a die() statement which triggers lei->dclose, but aren't in the event loop, yet.
-rw-r--r-- | lib/PublicInbox/LEI.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 1e5b04ca..fdd9f8c8 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -973,7 +973,7 @@ sub dclose { if (my $sto = delete $self->{sto}) { $sto->ipc_do('done'); } - $self->close if $self->{sock}; # PublicInbox::DS::close + $self->close if $self->{-event_init_done}; # PublicInbox::DS::close } # for long-running results |