]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Inbox.pm
fix syntax warnings
[public-inbox.git] / lib / PublicInbox / Inbox.pm
index f307038399b77437b8e5a94ed163e01559959466..666c81d7125cc68e7166e1249edcb2fec0376bdf 100644 (file)
@@ -29,7 +29,7 @@ sub cleanup_task () {
 
 sub _cleanup_later ($) {
        my ($self) = @_;
-       return unless $PublicInbox::EvCleanup::ENABLED;
+       return unless PublicInbox::EvCleanup::enabled();
        $cleanup_timer ||= PublicInbox::EvCleanup::later(*cleanup_task);
        $CLEANUP->{"$self"} = $self;
 }