about summary refs log tree commit homepage
path: root/lib/PublicInbox/DS.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-24 02:52:06 +0000
committerEric Wong <e@80x24.org>2019-06-24 05:26:25 +0000
commit8c8b5c28b20b4d8ceee89312b1cc9e4602a7beb3 (patch)
tree4dae1477ac458108505b636e7fbcff1aa0f1a7e4 /lib/PublicInbox/DS.pm
parent2f9aea4ecb6208955144e8a2290d747a4ff9c966 (diff)
downloadpublic-inbox-8c8b5c28b20b4d8ceee89312b1cc9e4602a7beb3.tar.gz
Wrong place to be wrapping this method.
Diffstat (limited to 'lib/PublicInbox/DS.pm')
-rw-r--r--lib/PublicInbox/DS.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm
index ed04feb5..26c5251b 100644
--- a/lib/PublicInbox/DS.pm
+++ b/lib/PublicInbox/DS.pm
@@ -571,7 +571,7 @@ sub write {
             # since connection has stuff to write, it should now be
             # interested in pending writes:
             $self->{wbuf_off} += $written;
-            $self->on_incomplete_write;
+            $self->watch_write(1);
             return 0;
         } elsif ($written == $to_write) {
             $self->{wbuf_off} = 0;
@@ -590,11 +590,6 @@ sub write {
     }
 }
 
-sub on_incomplete_write {
-    my PublicInbox::DS $self = shift;
-    $self->watch_write(1);
-}
-
 =head2 C<< $obj->watch_read( $boolean ) >>
 
 Turn 'readable' event notification on or off.