]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/DS.pm
ds|nntp: use CORE::close on socket
[public-inbox.git] / lib / PublicInbox / DS.pm
index 044b991c8c602abbee79a7b947ac3a21bacae50b..2c886b4e4ff64674b6d367be0b528c5322417cdf 100644 (file)
@@ -293,8 +293,8 @@ sub PostEventLoop {
     while (my $sock = shift @ToClose) {
         my $fd = fileno($sock);
 
-        # close the socket.  (not a PublicInbox::DS close)
-        $sock->close;
+        # close the socket. (not a PublicInbox::DS close)
+        CORE::close($sock);
 
         # and now we can finally remove the fd from the map.  see
         # comment above in ->close.