fix: use serverStatus not just status

This commit is contained in:
peaklabs-dev
2024-12-16 14:27:17 +01:00
parent 13f7d2a486
commit 0cbb3a08c2

View File

@@ -1048,7 +1048,7 @@ $schema://$host {
if ($this->unreachable_count >= 2 && ! $unreachableNotificationSent) { if ($this->unreachable_count >= 2 && ! $unreachableNotificationSent) {
$failedChecks = 0; $failedChecks = 0;
for ($i = 0; $i < 3; $i++) { for ($i = 0; $i < 3; $i++) {
$status = $this->status(); $status = $this->serverStatus();
sleep(5); sleep(5);
if (! $status) { if (! $status) {
$failedChecks++; $failedChecks++;