浏览代码

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");