diff --git a/openflexure_microscope/camera/base.py b/openflexure_microscope/camera/base.py index e67572d4..b10590b8 100644 --- a/openflexure_microscope/camera/base.py +++ b/openflexure_microscope/camera/base.py @@ -303,7 +303,6 @@ class BaseCamera(object): while self.get_frame() is None: if time.time() > timeout_time: raise TimeoutError("Timeout waiting for frames.") - break else: time.sleep(0) return True @@ -316,7 +315,6 @@ class BaseCamera(object): while self.thread: if time.time() > timeout_time: raise TimeoutError("Timeout waiting for worker thread to close.") - break else: time.sleep(0) return True