Revision 0b7d3b31 ncclient/transport/ssh.py

b/ncclient/transport/ssh.py
321 321
                        data = data[n:]
322 322
        except Exception as e:
323 323
            logger.debug('broke out of main loop')
324
            expecting = self._expecting_close
324 325
            self.close()
325
            if not (isinstance(e, SessionCloseError) and self._expecting_close):
326
            logger.debug('error=%r' % e)
327
            logger.debug('expecting_close=%r' % expecting)
328
            if not (isinstance(e, SessionCloseError) and expecting):
326 329
                self._dispatch_error(e)
327 330

  
328 331
    @property

Also available in: Unified diff