Fix rare crash with double-delete of timed-out servers.

Subversion-branch: /master
Subversion-revision: 2480
This commit is contained in:
Simon Howard 2011-12-01 01:58:06 +00:00
parent da3ab15169
commit da23130736

View file

@ -342,7 +342,7 @@ class MasterServer:
# Expect a response to queries quickly, otherwise add
# requests are rejected.
if not server.verified and time() - server.refresh_time > 5:
elif not server.verified and time() - server.refresh_time > 5:
self.log_output(server.addr,
"No response to query, add rejected")
self.send_add_response(server, 0)