Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Games
trosnoth
Commits
0630de1698b7
Commit
7fcd3242
authored
Jan 21, 2021
by
talljosh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only wait 2 seconds for name resolution when looking for available games.
parent
f4b2dfe7ca8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
trosnoth/welcome/play.py
trosnoth/welcome/play.py
+1
-1
No files found.
trosnoth/welcome/play.py
View file @
0630de16
...
...
@@ -766,7 +766,7 @@ class GameRefresher:
try
:
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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment