about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-23 18:09:06 +0000
committerEric Wong <e@yhbt.net>2020-06-25 06:41:46 +0000
commit358f61264330da1e510c07868372c02dfa8f6b2c (patch)
tree0caaa8eed902a9035c90e3d60a42f356c7114d8e
parent10ee3548084c125f20fe2c830faea2a43413be92 (diff)
downloadpublic-inbox-358f61264330da1e510c07868372c02dfa8f6b2c.tar.gz
This quiets warnings from IMAP::fetch_blob (called via
long_response) failing to access `$self->{ibx}->git'
because ->{ibx} gets deleted by IMAP::close.
-rw-r--r--lib/PublicInbox/DS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm
index b7753e1a..aa65b2d3 100644
--- a/lib/PublicInbox/DS.pm
+++ b/lib/PublicInbox/DS.pm
@@ -421,8 +421,8 @@ sub epbit ($$) { # (sock, default)
 # returns 1 if done, 0 if incomplete
 sub flush_write ($) {
     my ($self) = @_;
+    my $sock = $self->{sock} or return;
     my $wbuf = $self->{wbuf} or return 1;
-    my $sock = $self->{sock};
 
 next_buf:
     while (my $bref = $wbuf->[0]) {