about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-07 11:53:10 +0000
committerEric Wong <e@80x24.org>2019-01-08 00:43:40 +0000
commit0f0d6284b51db4e0f10b698a4461e45f2e774495 (patch)
tree22812aa27c478b5ab9743c19ef78e32facb0d065
parent7d02b9e64455831d3bda20cd2e64e0c15dc07df5 (diff)
downloadpublic-inbox-0f0d6284b51db4e0f10b698a4461e45f2e774495.tar.gz
do_write must return 0 or 1.
-rw-r--r--lib/PublicInbox/NNTP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index 90a5a3a5..623ffd35 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -902,7 +902,7 @@ sub more ($$) {
 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