]> _ Git - cubist_pdf.git/commitdiff
wip #5220
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 May 2022 16:21:51 +0000 (18:21 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 May 2022 16:21:51 +0000 (18:21 +0200)
src/PDFTools.php

index c85665c0bc502236f76abc0b047286538ccd0716..c16038307ee58e441faab215e83324c2aecc9992 100644 (file)
@@ -375,12 +375,14 @@ class PDFTools
 
         $lock = $pdf . '.split.lock';
 
-
         $returnAfterSleep = false;
 
         usleep(rand(100000, 2000000));
 
         while (file_exists($lock)) {
+            if(filemtime($lock)<time()-300){
+                unlink($lock);
+            }
             $returnAfterSleep = true;
             sleep(5);
         }