UI: fix stuck in visionIPC receive timeout (#22450)

old-commit-hash: afaf235acd
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent bd8ed4caa9
commit 96a8d9dd3e
  1. 2
      selfdrive/ui/qt/widgets/cameraview.cc

@ -266,7 +266,7 @@ void CameraViewWidget::updateFrame() {
LOGE("visionIPC receive timeout");
}
}
if (buf == nullptr) {
if (buf == nullptr && isVisible()) {
// try to connect or recv again
QTimer::singleShot(1000. / UI_FREQ, this, &CameraViewWidget::updateFrame);
}

Loading…
Cancel
Save