def _buffer_recv_worker(rt_client, nchan):
    try:
        for raw_buffer in rt_client.raw_buffers(nchan):
            rt_client._push_raw_buffer(raw_buffer)
    except RuntimeError as err:
        # something is wrong, the server stopped (or something)
        rt_client._recv_thread = None
        print('Buffer receive thread stopped: %s' % err)
Change the default shell of the user
dataset/ETHPy150Open mne-tools/mne-python/mne/realtime/client.py/_buffer_recv_worker--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py/chshell