From 1818d8bec9fabbf532074bff2c568ca120e281ee Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Wed, 23 Apr 2025 22:03:16 -0500 Subject: [PATCH] Fixed error preventing GSH client from working, moved server list starting task ahead of other tasks to ensure server list _can_ populate if other parts of the backend are dead --- lib/api.rb | 2 +- lib/states/boot.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api.rb b/lib/api.rb index c9c5cdd..1c227a6 100644 --- a/lib/api.rb +++ b/lib/api.rb @@ -87,7 +87,7 @@ class W3DHub end def self.post(url, headers = DEFAULT_HEADERS, body = nil, api = :api) - excon(:post, url, headers, body) + excon(:post, url, headers, body, api) end # Method: POST diff --git a/lib/states/boot.rb b/lib/states/boot.rb index 7dda073..c397b01 100644 --- a/lib/states/boot.rb +++ b/lib/states/boot.rb @@ -12,11 +12,11 @@ class W3DHub @w3dhub_logo = get_image("#{GAME_ROOT_PATH}/media/icons/app.png") @tasks = { # connectivity_check: { started: false, complete: false }, # HEAD connectivity-check.ubuntu.com or HEAD secure.w3dhub.com? + server_list: { started: false, complete: false }, refresh_user_token: { started: false, complete: false }, service_status: { started: false, complete: false }, applications: { started: false, complete: false }, - app_icons: { started: false, complete: false }, - server_list: { started: false, complete: false } + app_icons: { started: false, complete: false } } @offline_mode = false