This commit is contained in:
2021-11-05 11:30:32 +08:00
parent 3dba884f64
commit e7e24a1488
+9 -1
View File
@@ -117,12 +117,20 @@ class Scaner
}
private bool $isStop = false;
public function clear()
{
$this->isStop = true;
}
/**
* @throws Exception
*/
public function tick()
{
if ($this->process->isReloading) {
if ($this->process->isReloading || $this->isStop) {
return;
}