about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-19 02:03:29 +0000
committerEric Wong <e@80x24.org>2015-09-19 04:18:36 +0000
commitc6e35192bf5aa6b195e210674f9a30d189ab7457 (patch)
tree3508afe2b3bbb9476b1b23ed306fcb6c4e0503d4 /lib
parent761736a312a103ba522abac52a604564f9e788ce (diff)
downloadpublic-inbox-c6e35192bf5aa6b195e210674f9a30d189ab7457.tar.gz
It is shorter code and probably faster than checking an
array.
Diffstat (limited to 'lib')
-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 f1aaed48..807b49f8 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -514,7 +514,7 @@ use constant MSG_MORE => ($^O eq 'linux') ? 0x8000 : 0;
 
 sub do_more {
         my ($self, $data) = @_;
-        if (MSG_MORE && !scalar @{$self->{write_buf}}) {
+        if (MSG_MORE && !$self->{write_buf_size}) {
                 my $n = send($self->{sock}, $data, MSG_MORE);
                 if (defined $n) {
                         my $dlen = bytes::length($data);