lib/PublicInbox/NNTP.pm | 2 +- diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 90a5a3a58e686b35eb1367e9accc95d1c9fc1b6f..623ffd35c172ba85d7204570be33b6b563bf501b 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -902,7 +902,7 @@ sub do_write ($$) { my ($self, $data) = @_; my $done = $self->write($data); - return if $self->{closed}; + return 0 if $self->{closed}; # Do not watch for readability if we have data in the queue, # instead re-enable watching for readability when we can