From 910a1f43a937a284e4f7eb91a95743712fd163b8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 18 Jan 2024 12:44:20 +0100 Subject: [PATCH] Do not report server is not ready --- app/Jobs/ServerStatusJob.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.php index 6272d442d..0afcb4bb3 100644 --- a/app/Jobs/ServerStatusJob.php +++ b/app/Jobs/ServerStatusJob.php @@ -37,10 +37,10 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted public function handle() { + if (!$this->server->isServerReady($this->tries)) { + throw new \RuntimeException('Server is not ready.'); + }; try { - if (!$this->server->isServerReady($this->tries)) { - throw new \RuntimeException('Server is not ready.'); - }; if ($this->server->isFunctional()) { $this->cleanup(notify: false); }