ui: clear available camera streams after going offroad (#36441)

clear available camera streams after going offroad
This commit is contained in:
Dean Lee
2025-10-25 10:27:33 +08:00
committed by GitHub
parent 534f096bb8
commit c8c1b0f781
+1
View File
@@ -114,6 +114,7 @@ class CameraView(Widget):
# which drains the VisionIpcClient SubSocket for us. Re-connecting is not enough
# and only clears internal buffers, not the message queue.
self.frame = None
self.available_streams.clear()
if self.client:
del self.client
self.client = VisionIpcClient(self._name, self._stream_type, conflate=True)