mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 21:42:05 +08:00
UI: fix stuck in visionIPC receive timeout (#22450)
old-commit-hash: afaf235acd533e9c105925caab1e872ee3d3457b
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user