pull/32571/head
Shane Smiskol 1 year ago
parent 5d747dc7f3
commit 17d815ddfc
  1. 4
      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);
}
});

Loading…
Cancel
Save