mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Replaced most Excon + Thread calls with Async
This commit is contained in:
@@ -318,9 +318,11 @@ class W3DHub
|
||||
return
|
||||
end
|
||||
|
||||
Thread.new do
|
||||
Async do
|
||||
internet = Async::HTTP::Internet.instance
|
||||
|
||||
begin
|
||||
list = Api.server_list(2)
|
||||
list = Api.server_list(internet, 2)
|
||||
|
||||
if list
|
||||
Store.server_list = list.sort_by! { |s| s&.status&.players&.size }.reverse
|
||||
|
||||
Reference in New Issue
Block a user