소스 검색

unlink statistics file

walkor 2 년 전
부모
커밋
1319106718
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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");