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

clear available camera streams after going offroad
pull/36458/head
Dean Lee 2 weeks ago committed by GitHub
parent 534f096bb8
commit c8c1b0f781
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      selfdrive/ui/onroad/cameraview.py

@ -114,6 +114,7 @@ class CameraView(Widget):
# which drains the VisionIpcClient SubSocket for us. Re-connecting is not enough # which drains the VisionIpcClient SubSocket for us. Re-connecting is not enough
# and only clears internal buffers, not the message queue. # and only clears internal buffers, not the message queue.
self.frame = None self.frame = None
self.available_streams.clear()
if self.client: if self.client:
del self.client del self.client
self.client = VisionIpcClient(self._name, self._stream_type, conflate=True) self.client = VisionIpcClient(self._name, self._stream_type, conflate=True)

Loading…
Cancel
Save