mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 10:16:32 +01:00
Starting debug cleanups
This commit is contained in:
parent
f99ee27382
commit
9f751d9334
2 changed files with 3 additions and 3 deletions
|
|
@ -170,7 +170,7 @@ class AmpClientFactory(protocol.ReconnectingClientFactory):
|
|||
|
||||
"""
|
||||
if hasattr(self, "server_restart_mode"):
|
||||
self.maxDelay = 1
|
||||
self.maxDelay = 2
|
||||
else:
|
||||
# Don't translate this; avoid loading django on portal side.
|
||||
self.maxDelay = 10
|
||||
|
|
@ -187,8 +187,9 @@ class AmpClientFactory(protocol.ReconnectingClientFactory):
|
|||
reason (str): Eventual text describing why connection failed.
|
||||
|
||||
"""
|
||||
print ("portal retrying connection"), self.maxDelay
|
||||
if hasattr(self, "server_restart_mode"):
|
||||
self.maxDelay = 1
|
||||
self.maxDelay = 2
|
||||
else:
|
||||
self.maxDelay = 10
|
||||
self.portal.sessions.announce_all(" ...")
|
||||
|
|
|
|||
|
|
@ -181,7 +181,6 @@ class WebClient(resource.Resource):
|
|||
suid = request.args.get('suid', ['0'])[0]
|
||||
if suid == '0':
|
||||
return '""'
|
||||
print "keepalive succeeded"
|
||||
self.last_alive[suid] = (time(), False)
|
||||
return '""'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue