Fix logic of this shit again

This commit is contained in:
Fijxu
2026-01-30 21:43:25 -03:00
parent 9107f22720
commit 9ab8d39168
3 changed files with 19 additions and 2 deletions

View File

@@ -119,7 +119,13 @@ class CompanionStatus
client = HTTP::Client.new(companion.private_url, tls: tls)
client.connect_timeout = 10.seconds
response = client.get(CONFIG.check_backends_path)
begin
response = client.get(CONFIG.check_backends_path)
rescue
@companions[index].status = Status::Down
return
end
if response.status_code == 200
if response.content_type == "application/json"
body = response.body