mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
system: keep polling if watcher cannot load a class
This happened two times now... [09-Oct-2023 19:25:44 Europe/Berlin] PHP Fatal error: Uncaught Error: Class "OPNsense\Base\ModelException" not found in /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php:314 Stack trace: thrown in /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php on line 314
This commit is contained in:
parent
3778fee6d1
commit
16ce982fa6
@ -57,7 +57,13 @@ sleep($wait);
|
||||
while (1) {
|
||||
pcntl_signal_dispatch();
|
||||
|
||||
$status = dpinger_status();
|
||||
try {
|
||||
$status = dpinger_status();
|
||||
} catch (Exception $e) {
|
||||
sleep($poll);
|
||||
continue;
|
||||
}
|
||||
|
||||
$alarm = false;
|
||||
|
||||
/* clear known gateways in first step to flush unknown in second step */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user