

def stop_receive_thread(self, stop_measurement=False):
    'Stop the receive thread\n\n        Parameters\n        ----------\n        stop_measurement : bool\n            Also stop the measurement.\n        '
    if (self._recv_thread is not None):
        self._recv_thread.stop()
        self._recv_thread = None
    if stop_measurement:
        self.stop_measurement()

dataset/ETHPy150Open mne-tools/mne-python/mne/realtime/client.py RtClient.stop_receive_thread/original