def connectionLost(self, reason): """Clean up and let the superclass handle it.""" Telnet.connectionLost(self, reason) LineOnlyReceiver.connectionLost(self, reason) #flush out the buffer if self._buffer: self.lineReceived(self._buffer) self.factory.realm.connectionLost()
def connectionLost(self, reason): self.call_remote(proxy_sessions.EndSession) basic.LineReceiver.connectionLost(self, reason) Telnet.connectionLost(self, reason) if self.session_id in sessions: del sessions[self.session_id]