mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 01:02:34 +00:00
Update community news every hour, added 10 second delay between fetch attempts to prevent making a bunch of unneeded requests
This commit is contained in:
@@ -37,6 +37,7 @@ class W3DHub
|
||||
|
||||
if Gosu.milliseconds >= @game_news["#{key}_expires"]
|
||||
@game_news.delete(key)
|
||||
@game_news["#{key}_expires"] = Gosu.milliseconds + 10_000 # seconds
|
||||
|
||||
if @focused_game && @focused_game.id == key
|
||||
@game_news_container.clear do
|
||||
|
||||
Reference in New Issue
Block a user