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

This commit is contained in:
Dean Lee
2021-10-10 05:43:27 +08:00
committed by GitHub
parent 5428dee4d2
commit afaf235acd
+1 -1
View File
@@ -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);
}