mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
Removed 'with' statement; it's available in Python2.5, but one needs to use the future import to do that, so easiest to remove it. Resolves issue 230.
This commit is contained in:
parent
7058b9f210
commit
c49fbd7d99
4 changed files with 13 additions and 9 deletions
|
|
@ -113,9 +113,12 @@ class AmpClientFactory(protocol.ReconnectingClientFactory):
|
|||
"""
|
||||
Called when the AMP connection to the MUD server is lost.
|
||||
"""
|
||||
if not hasattr(self, "server_restart_mode"):
|
||||
if hasattr(self, "server_restart_mode"):
|
||||
self.maxDelay = 1
|
||||
else:
|
||||
# Don't translate this; avoiding loading django on portal side.
|
||||
self.portal.sessions.announce_all(" Portal lost connection to Server.")
|
||||
self.maxDelay = 10
|
||||
self.portal.sessions.announce_all(" ... Portal lost connection to Server.")
|
||||
protocol.ReconnectingClientFactory.clientConnectionLost(self, connector, reason)
|
||||
|
||||
def clientConnectionFailed(self, connector, reason):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue