1
This commit is contained in:
@@ -29,6 +29,8 @@ class Inotify
|
||||
*/
|
||||
public function __construct(protected array $dirs, public HotReload $process)
|
||||
{
|
||||
set_error_handler(fn() => function () {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +77,7 @@ class Inotify
|
||||
}
|
||||
//非重启类型
|
||||
if (str_ends_with($ev['name'], '.php')) {
|
||||
Timer::after(3000, fn()=>$this->reload());
|
||||
Timer::after(3000, fn() => $this->reload());
|
||||
$this->isReloading = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user