diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index cb494efb57..57adde0154 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -262,8 +262,8 @@ void MapWindow::initializeGL() { QObject::connect(m_map.data(), &QMapLibre::Map::mapLoadingFailed, [=](QMapLibre::Map::MapLoadingFailure err_code, const QString &reason) { LOGE("Map loading failed with %d: '%s'\n", err_code, reason.toStdString().c_str()); - // time could be wrong, re-create token and try connecting again in 5s - if (err_code == QMapLibre::Map::MapLoadingFailure::StyleLoadFailure && !loaded_once && !reinit_timer.isActive()) { + // time could be wrong, re-create token and try connecting again + if (err_code == QMapLibre::Map::MapLoadingFailure::StyleLoadFailure && !reinit_timer.isActive()) { reinit_timer.start(5000); } });