Bläddra i källkod

unlink statistics file

walkor 2 år sedan
förälder
incheckning
1319106718
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/Worker.php

+ 1 - 0
src/Worker.php

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