From 0f03efe868f4a7910678a0a729f437a2fe8986b7 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 5 Feb 2024 11:27:09 +1100 Subject: Make db updates more robust again the sd card disappearing Accidentally found a bug while live on youtube :) --- src/database/file_gatherer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/database/file_gatherer.cpp') diff --git a/src/database/file_gatherer.cpp b/src/database/file_gatherer.cpp index f07a1b4d..dde363bd 100644 --- a/src/database/file_gatherer.cpp +++ b/src/database/file_gatherer.cpp @@ -28,6 +28,8 @@ auto FileGathererImpl::FindFiles( while (!to_explore.empty()) { std::string next_path_str = to_explore.front(); + to_explore.pop_front(); + const TCHAR* next_path = static_cast(next_path_str.c_str()); FF_DIR dir; @@ -72,7 +74,6 @@ auto FileGathererImpl::FindFiles( auto lock = drivers::acquire_spi(); f_closedir(&dir); - to_explore.pop_front(); } } -- cgit v1.2.3