diff --git a/src-core/common/tracking/tle.cpp b/src-core/common/tracking/tle.cpp index 74cae003b..8cd0666b9 100644 --- a/src-core/common/tracking/tle.cpp +++ b/src-core/common/tracking/tle.cpp @@ -91,7 +91,6 @@ namespace satdump std::filesystem::create_directories(std::filesystem::path(path).parent_path()); bool success = true; - bool all_success = true; TLERegistry new_registry; for (int norad : norads_to_fetch) @@ -128,12 +127,12 @@ namespace satdump if (!success) { - all_success = false; logger->warn("Failed to get TLE for %s", url_str.c_str()); + break; } } - if (all_success) + if (success) { std::ofstream outfile(path, std::ios::trunc); for (TLE& tle : new_registry)