Correctly updated handshake countdown in telnet.

This commit is contained in:
Griatch 2014-10-06 08:15:01 +02:00
parent 63a2d84a8f
commit 5f4e2065de

View file

@ -34,7 +34,7 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
client_address = self.transport.client
# this number is counted down for every handshake that completes.
# when it reaches 0 the portal/server syncs their data
self.handshakes = 5 # naws, ttype, mccp, mssp, msdp
self.handshakes = 6 # naws, ttype, mccp, mssp, msdp, mxp
self.init_session("telnet", client_address, self.factory.sessionhandler)
# negotiate client size