diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/CliMulti/Process.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/CliMulti/Process.php b/core/CliMulti/Process.php index daed5a85c4..bb0583c4ad 100644 --- a/core/CliMulti/Process.php +++ b/core/CliMulti/Process.php @@ -21,6 +21,7 @@ use Piwik\SettingsServer; */ class Process { + private $finished = null; private $pidFile = ''; private $timeCreation = null; private $isSupported = null; @@ -81,6 +82,10 @@ class Process public function hasFinished() { + if ($this->finished) { + return true; + } + $content = $this->getPidFileContent(); return !$this->doesPidFileExist($content); @@ -129,6 +134,7 @@ class Process public function finishProcess() { + $this->finished = true; Filesystem::deleteFileIfExists($this->pidFile); } |