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.
1 parent 50d03ce commit 26f06fcCopy full SHA for 26f06fc
BabbleApp/camera.py
@@ -92,13 +92,8 @@ def run(self):
92
should_push = True
93
# If things aren't open, retry until they are. Don't let read requests come in any earlier
94
# than this, otherwise we can deadlock (valve reference) ourselves.
95
- if (
96
- self.config.capture_source is not None
97
- and self.config.capture_source != ""
98
- ):
99
- self.current_capture_source = self.config.capture_source
+ if self.config.capture_source not in (None, ""):
100
isSerial = any(x in str(self.config.capture_source) for x in PORTS)
101
-
102
if isSerial:
103
if self.cv2_camera is not None:
104
self.cv2_camera.release()
0 commit comments