diff options
author | Eric Wong <e@80x24.org> | 2021-02-04 02:06:54 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-04 09:50:56 +0000 |
commit | 200a81c0c32173edf9a7ac5bc555c6dfb1aa28b5 (patch) | |
tree | 186a144bd91b8a106f1ae4fe85c933b6e35484d8 | |
parent | 91e02efc186202ebc16795bdb17f2abcca6e95a0 (diff) | |
download | public-inbox-200a81c0c32173edf9a7ac5bc555c6dfb1aa28b5.tar.gz |
"next" apparently doesn't work in "do {} while" loops, so just use "while" as it makes no difference, here.
-rw-r--r-- | lib/PublicInbox/PktOp.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/PktOp.pm b/lib/PublicInbox/PktOp.pm index 10d76da0..5d8e78ea 100644 --- a/lib/PublicInbox/PktOp.pm +++ b/lib/PublicInbox/PktOp.pm @@ -48,7 +48,7 @@ sub event_step { my ($self) = @_; my $c = $self->{sock}; my $msg; - do { + while (1) { my $n = recv($c, $msg, 4096, 0); unless (defined $n) { return if $! == EAGAIN; @@ -70,7 +70,7 @@ sub event_step { my ($sub, @args) = @$op; $sub->(@args, @pargs); return $self->close if $msg eq ''; # close on EOF - } while (1); + } } 1; |