diff options
author | Eric Wong <e@80x24.org> | 2021-10-30 08:11:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-30 18:34:31 +0000 |
commit | 9cd6f106919076285c3dcc0d48977d6b39c33ede (patch) | |
tree | c09b0d41807427e840a92591990e5daf7ee07641 | |
parent | 0bb44530cbc51488240df5027f9f00808dcc13ce (diff) | |
download | public-inbox-9cd6f106919076285c3dcc0d48977d6b39c33ede.tar.gz |
It's possible for this to break out of the event loop if note_sigpipe fires via PktOp in the same iteration.
-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 96f7c5e3..78b49a3b 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1127,7 +1127,7 @@ sub event_step { local %ENV = %{$self->{env}}; local $current_lei = $self; eval { - my @fds = $recv_cmd->($self->{sock}, my $buf, 4096); + my @fds = $recv_cmd->($self->{sock} // return, my $buf, 4096); if (scalar(@fds) == 1 && !defined($fds[0])) { return if $! == EAGAIN; die "recvmsg: $!" if $! != ECONNRESET; |