Removed redundant code
This commit is contained in:
parent
a7499fa3be
commit
35c7d97db9
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue