mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-11-03 16:44:05 +00:00
Prevent race condition with server list websocket by making it wait until frontend has requested settings
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user