def stop(self):
        """Tell the SocketIO thread to terminate."""
        if self._thread:
            _LOGGER.info("Stopping SocketIO thread...")

            # pylint: disable=W0212
            self._running = False

            if self._exit_event:
                self._exit_event.set()

            self._thread.join()
def stop ( self ) : if self . _thread : _LOGGER . info ( "Stopping SocketIO thread..." ) self . _running = False if self . _exit_event : self . _exit_event . set ( ) self . _thread . join ( )
Tell the SocketIO thread to terminate.