From c9a1437870a1eead595744ed8a3709e14f8b9124 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 20 Dec 2023 12:33:58 +0100 Subject: [PATCH] Fix handle method in ServerStatusJob --- app/Jobs/ServerStatusJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.php index 2cdf4d547..96fc8f75c 100644 --- a/app/Jobs/ServerStatusJob.php +++ b/app/Jobs/ServerStatusJob.php @@ -35,7 +35,7 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted return $this->server->uuid; } - public function handle(): void + public function handle() { ray("checking server status for {$this->server->id}"); if (!$this->server->isServerReady(4)) { @@ -48,7 +48,7 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted } catch (\Throwable $e) { send_internal_notification('ServerStatusJob failed with: ' . $e->getMessage()); ray($e->getMessage()); - handleError($e); + return handleError($e); } } public function cleanup(bool $notify = false): void