about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/LI2Wrap.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LI2Wrap.pm b/lib/PublicInbox/LI2Wrap.pm
index 61cf4bee..204850a6 100644
--- a/lib/PublicInbox/LI2Wrap.pm
+++ b/lib/PublicInbox/LI2Wrap.pm
@@ -12,6 +12,7 @@ sub wrapclose {
         my ($inot) = @_;
         my $fd = $inot->fileno;
         open my $fh, '<&=', $fd or die "open <&= $fd $!";
+        bless $inot, __PACKAGE__;
 }
 
 sub DESTROY {} # no-op