]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwStream.pm
www*stream: favor \&close instead of *close
[public-inbox.git] / lib / PublicInbox / WwwStream.pm
index a724d0697db589121e08acd48b2ff5b9003e4736..ef5897b26a2f8cc7aeadec7d7ba7ddafef41a282 100644 (file)
@@ -23,7 +23,7 @@ sub new {
        chop $base_url; # no trailing slash for clone
        bless {
                nr => 0,
-               cb => $cb || *close,
+               cb => $cb || \&close,
                ctx => $ctx,
                base_url => $base_url,
        }, $class;