]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LI2Wrap.pm
li2wrap: avoid double-close on Linux::Inotify2 <2.3
[public-inbox.git] / lib / PublicInbox / LI2Wrap.pm
index 61cf4beef081e6d7d4128484e88e0d5a9df6a1c2..204850a60fba54ab06b850619dca73e31b084e4e 100644 (file)
@@ -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