We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60013e5 + 26f06fc commit 00e03c8Copy full SHA for 00e03c8
BabbleApp/camera.py
@@ -95,13 +95,8 @@ def run(self):
95
should_push = True
96
# If things aren't open, retry until they are. Don't let read requests come in any earlier
97
# than this, otherwise we can deadlock (valve reference) ourselves.
98
- if (
99
- self.config.capture_source is not None
100
- and self.config.capture_source != ""
101
- ):
102
- self.current_capture_source = self.config.capture_source
+ if self.config.capture_source not in (None, ""):
103
isSerial = any(x in str(self.config.capture_source) for x in PORTS)
104
-
105
if isSerial:
106
if self.cv2_camera is not None:
107
self.cv2_camera.release()
0 commit comments