Minor tweaks to fix a portal traceback during handshake.

This commit is contained in:
Griatch 2016-09-13 12:31:47 +02:00
parent 528401ec99
commit e6e61aa5e6
2 changed files with 2 additions and 2 deletions

View file

@ -82,5 +82,5 @@ class Mxp(object):
"""
self.protocol.protocol_flags["MXP"] = True
self.protocol.handshake_done()
self.protocol.requestNegotiation(MXP, '')
self.protocol.handshake_done()

View file

@ -68,7 +68,7 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
# timeout the handshakes in case the client doesn't reply at all
from evennia.utils.utils import delay
delay(2, callback=self.handshake_done, retval=True)
delay(2, callback=self.handshake_done, force=True)
# TCP/IP keepalive watches for dead links
self.transport.setTcpKeepAlive(1)