'This is called by all telnet extensions once they are finished.
When all have reported, a sync with the server is performed.
The system will force-call this sync after a small time to handle
clients that don\'t reply to handshakes at all.'

def handshake_done(self, force=False):

    if (self.handshakes > 0):
        if force:
            self.sessionhandler.sync(self)
            return
        self.handshakes -= 1
        if (self.handshakes <= 0):
            self.sessionhandler.sync(self)
