xiaomi_gateway/__init__.py
def stop_listen(self):
        """Stop listening."""
        self._listening = False

        if self._mcastsocket is not None:
            _LOGGER.info('Closing multisocket')
            self._mcastsocket.close()
            self._mcastsocket = None

        for thread in self._threads:
            thread.join()
def stop_listen(self):
        """Stop listening."""
        self._listening = False

        if self._mcastsocket is not None:
            _LOGGER.info('Closing multisocket')
            self._mcastsocket.close()
            self._mcastsocket = None

        for thread in self._threads:
            thread.join()
def stop_listen ( self ) : self . _listening = False if self . _mcastsocket is not None : _LOGGER . info ( 'Closing multisocket' ) self . _mcastsocket . close ( ) self . _mcastsocket = None for thread in self . _threads : thread . join ( )
Stop listening.
Stop listening .