]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Gcf2.pm
nntp: inline CRLF in all response lines
[public-inbox.git] / lib / PublicInbox / Gcf2.pm
index f546208fa4adeab33016619575e16d9e2b4acb47..41ee0715c8560feaf47854488b19fccdb76da13b 100644 (file)
@@ -138,10 +138,12 @@ sub loop (;$) {
                } else { # check expiry to deal with deleted pack files
                        my $now = clock_gettime(CLOCK_MONOTONIC);
                        $check_at //= $now + $exp;
-                       if ($now > $check_at && have_unlinked_files()) {
+                       if ($now > $check_at) {
                                undef $check_at;
-                               $gcf2 = new();
-                               %seen = ();
+                               if (have_unlinked_files()) {
+                                       $gcf2 = new();
+                                       %seen = ();
+                               }
                        }
                }
        }