diff --git a/qutil/plotting/live_view.py b/qutil/plotting/live_view.py index 679515a99ec8ca646dcb8462fad7e6da541edbb4..5d769d856499d6b3e254ad9c5b7ae18cf8ef523c 100644 --- a/qutil/plotting/live_view.py +++ b/qutil/plotting/live_view.py @@ -1064,10 +1064,10 @@ class LiveViewBase(abc.ABC): self._LOG.debug(f'Starting {self.data_thread} from {self}.') # Make sure the thread is running. - with misc.timeout(100e-3, raise_exc='thread could not be started in {}s.') as exceeded: + with misc.timeout(1, raise_exc='thread could not be started in {}s.') as exceeded: self.data_thread.start() while not self.data_thread.is_alive() and not exceeded: - continue + time.sleep(10e-3) self._LOG.debug(f'Waited {exceeded.elapsed:.3g}s for thread to start.')