From 8be23eb01dfa94b7ef432e4c99f8665292dc3e33 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sun, 16 Mar 2025 23:30:07 -0300 Subject: [PATCH] fix: fix checking logic on the backend checker --- src/invidious/helpers/backend_info.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invidious/helpers/backend_info.cr b/src/invidious/helpers/backend_info.cr index 35130f3c..d1ff20fe 100644 --- a/src/invidious/helpers/backend_info.cr +++ b/src/invidious/helpers/backend_info.cr @@ -11,7 +11,6 @@ module BackendInfo begin response = HTTP::Client.get "#{CONFIG.invidious_companion.sample.private_url}/healthz" if response.status_code == 200 - @@status = 1 check_videoplayback_proxy() else @@status = 0 @@ -36,6 +35,8 @@ module BackendInfo if exvpp_health.status_code == 200 @@status = 2 return + else + @@status = 1 end rescue @@status = 1