check server functionality before status

This commit is contained in:
Andras Bacsai 2024-11-02 18:33:23 +01:00
parent c2e076be54
commit 2eab9296cf

View file

@ -976,10 +976,10 @@ public function isSwarmWorker()
public function serverStatus(): bool
{
if ($this->status() === false) {
if ($this->isFunctional() === false) {
return false;
}
if ($this->isFunctional() === false) {
if ($this->status() === false) {
return false;
}