def __setstate__(self, state):
        self.__dict__.update(state)
        self.logger = logging.getLogger('ravello')
        if self.connection:
            self._connect()
Called by Twisted when the cftp client process ends.
dataset/ETHPy150Open ravello/testmill/lib/testmill/ravello.py/RavelloClient.__setstate__--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_cftp.py/SFTPTestProcess.processEnded