From 35c7d97db960f40be2f2b4054937b855861c731c Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 6 Nov 2018 18:50:15 +0000 Subject: [PATCH] Removed redundant code --- openflexure_microscope/camera/base.py | 2 -- 1 file changed, 2 deletions(-) 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