Prechádzať zdrojové kódy

unlink statistics file

walkor 2 rokov pred
rodič
commit
1319106718
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      src/Worker.php

+ 1 - 0
src/Worker.php

@@ -952,6 +952,7 @@ class Worker
                     // Echo status data.
                     static::safeEcho(static::formatStatusData($statisticsFile));
                     if ($mode !== '-d') {
+                        @\unlink($statisticsFile);
                         exit(0);
                     }
                     static::safeEcho("\nPress Ctrl+C to quit.\n\n");