Commit 7fcd3242 authored by talljosh's avatar talljosh

Only wait 2 seconds for name resolution when looking for available games.

parent f4b2dfe7ca8d
......@@ -766,7 +766,7 @@ class GameRefresher:
ip_address = ipaddress.ip_address(host)
except ValueError:
ip_address = ipaddress.ip_address(await as_future(reactor.resolve(host)))
ip_address = ipaddress.ip_address(await as_future(reactor.resolve(host, timeout=2)))
return ip_address, port
async def get_trusted_server_games(self, server_string):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment