Fix server status check in ServerStatusJob.php

This commit is contained in:
Andras Bacsai 2024-05-03 13:43:54 +02:00
parent 424a6b0428
commit 52df8e6e8b

View File

@ -38,7 +38,7 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted
public function handle() public function handle()
{ {
if (!$this->server->isServerReady($this->tries)) { if (!$this->server->isServerReady($this->tries)) {
return "Server is not ready yet."; throw new \Exception('Server is not ready');
}; };
try { try {
if ($this->server->isFunctional()) { if ($this->server->isFunctional()) {