dsmr_parser/clients/protocol.py
def connection_lost(self, exc):
        """Stop when connection is lost."""
        if exc:
            self.log.exception('disconnected due to exception')
        else:
            self.log.info('disconnected because of close/abort.')
        self._closed.set()
def connection_lost(self, exc):
        """Stop when connection is lost."""
        if exc:
            self.log.exception('disconnected due to exception')
        else:
            self.log.info('disconnected because of close/abort.')
        self._closed.set()
def connection_lost ( self , exc ) : if exc : self . log . exception ( 'disconnected due to exception' ) else : self . log . info ( 'disconnected because of close/abort.' ) self . _closed . set ( )
Stop when connection is lost.
Stop when connection is lost .