Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
namespace Kiri\FileListen;
|
namespace Kiri\FileListen;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Swoole\Timer;
|
|
||||||
|
|
||||||
class Scaner
|
class Scaner
|
||||||
{
|
{
|
||||||
@@ -68,8 +67,11 @@ class Scaner
|
|||||||
}
|
}
|
||||||
if (is_file($value)) {
|
if (is_file($value)) {
|
||||||
if ($this->checkFile($value, $isReload)) {
|
if ($this->checkFile($value, $isReload)) {
|
||||||
Timer::after(2000, fn() => $this->timerReload());
|
|
||||||
$this->isReloading = TRUE;
|
$this->isReloading = TRUE;
|
||||||
|
|
||||||
|
sleep(2);
|
||||||
|
|
||||||
|
$this->timerReload($value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user