Skip to content

Commit 035a974

Browse files
committed
Fix shutdown order in camera preview stop
Reorders preview teardown so inference is stopped before stopping the multi-camera controller. This avoids stopping the controller while inference is still active and keeps shutdown state cleanup consistent.
1 parent 9d8f98f commit 035a974

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dlclivegui/gui/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,9 +1723,9 @@ def _stop_preview(self) -> None:
17231723
# Stop any active recording first
17241724
self._stop_multi_camera_recording()
17251725

1726-
self.multi_camera_controller.stop()
17271726
self._pending_recording_after_preview = False
17281727
self._stop_inference(show_message=False)
1728+
self.multi_camera_controller.stop()
17291729
self._fps_tracker.clear()
17301730
self._last_display_time = 0.0
17311731
if hasattr(self, "camera_stats_label"):

0 commit comments

Comments
 (0)