mirror of
https://github.com/chocolate-doom/master-server.git
synced 2024-11-10 07:11:38 +00:00
Reset needs_hole_punch when forcing server refresh.
This fixes #1 where servers requiring hole punch would time out from the leader board after several hours when the server refresh triggers. Besides, it's also possible the server no longer needs hole punching.
This commit is contained in:
parent
3cb43a5e5f
commit
d783811c05
1 changed files with 1 additions and 0 deletions
|
@ -267,6 +267,7 @@ class MasterServer:
|
|||
if server.verified and server.metadata_age() > METADATA_REFRESH_TIME:
|
||||
self.log_output(addr, "Metadata is old, forcing query")
|
||||
server.verified = False
|
||||
server.needs_hole_punch = False
|
||||
|
||||
# If the server has already been verified, we can send a
|
||||
# reply immediately. Otherwise, query the server via a
|
||||
|
|
Loading…
Reference in a new issue