fix: server ready
This commit is contained in:
parent
87036cc49b
commit
50e17ed932
1 changed files with 6 additions and 1 deletions
|
|
@ -151,7 +151,12 @@ public function skipServer()
|
|||
}
|
||||
public function isServerReady(int $tries = 3)
|
||||
{
|
||||
$serverUptimeCheckNumber = $this->unreachable_count + 1;
|
||||
if ($this->skipServer()) {
|
||||
return false;
|
||||
}
|
||||
if ($this->unreachable_count < $tries) {
|
||||
$serverUptimeCheckNumber = $this->unreachable_count + 1;
|
||||
}
|
||||
$serverUptimeCheckNumberMax = $tries;
|
||||
|
||||
ray('server: ' . $this->name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue