fix: server validation

This commit is contained in:
Andras Bacsai
2024-11-05 16:40:01 +01:00
parent 904ffc894d
commit 825e9b7e9d

View File

@@ -974,10 +974,10 @@ $schema://$host {
public function serverStatus(): bool
{
if ($this->isFunctional() === false) {
if ($this->status() === false) {
return false;
}
if ($this->status() === false) {
if ($this->isFunctional() === false) {
return false;
}
@@ -986,9 +986,6 @@ $schema://$host {
public function status(): bool
{
if ($this->isFunctional() === false) {
return false;
}
['uptime' => $uptime] = $this->validateConnection(false);
if ($uptime === false) {
foreach ($this->applications() as $application) {