Prevent race condition with server list websocket by making it wait until frontend has requested settings

This commit is contained in:
2026-10-15 19:59:10 -05:00
parent 1590922bc5
commit 92b2e34f25

View File

@@ -81,11 +81,21 @@ module W3DHubLauncher
# Handle getting and updating game server data
task.async do
# Wait for "activation"
while (@settings.nil?)
sleep 0.25
end
game_server_hub_websocket
end
# Handle backend communication
task.async do
# Wait for "activation"
while (@settings.nil?)
sleep 0.25
end
backend_websocket
end