]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Inbox.pm
ds: add an in_loop() function for Inbox.pm use
[public-inbox.git] / lib / PublicInbox / Inbox.pm
index ff80096528eb2301aae63c9389dba01421051868..e834d565da62915267898ce1dd7537dbabc390c3 100644 (file)
@@ -52,7 +52,7 @@ sub cleanup_task () {
 sub cleanup_possible () {
        # no need to require DS, here, if it were enabled another
        # module would've require'd it, already
-       eval { $PublicInbox::DS::in_loop } or return 0;
+       eval { PublicInbox::DS::in_loop() } or return 0;
 
        eval {
                require Devel::Peek; # needs separate package in Fedora