diff --git a/selfdrive/ui/replay/route.h b/selfdrive/ui/replay/route.h index 0d096f478f..126b676266 100644 --- a/selfdrive/ui/replay/route.h +++ b/selfdrive/ui/replay/route.h @@ -56,9 +56,9 @@ protected: void downloadFile(const QString &url); QString localPath(const QUrl &url); - bool loaded_ = false, valid_ = false; + std::atomic loaded_ = false, valid_ = false; std::atomic aborting_ = false; - int downloading_ = 0; + std::atomic downloading_ = 0; int seg_num_ = 0; SegmentFile files_; QString road_cam_path_;