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

old-commit-hash: afaf235acd533e9c105925caab1e872ee3d3457b
This commit is contained in:
Dean Lee
2021-10-10 05:43:27 +08:00
committed by GitHub
parent bd8ed4caa9
commit 96a8d9dd3e
+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);
}