diff --git a/src/opnsense/scripts/routes/gateway_watcher.php b/src/opnsense/scripts/routes/gateway_watcher.php index 3d3fef5d4..54ea5202c 100755 --- a/src/opnsense/scripts/routes/gateway_watcher.php +++ b/src/opnsense/scripts/routes/gateway_watcher.php @@ -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 */