From e15c78fdac873a2b88d22a246c124fa4efa80948 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 22 Oct 2026 17:43:38 +0200 Subject: [PATCH] Wait for background reconstruction before exporting plots. --- csvexport/src/csvexport.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/csvexport/src/csvexport.cpp b/csvexport/src/csvexport.cpp index c730d0d4..3464db6d 100644 --- a/csvexport/src/csvexport.cpp +++ b/csvexport/src/csvexport.cpp @@ -516,6 +516,11 @@ int main(int argc, char** argv) if(args.plot && args.unwrap) { + while (!worker.IsBackgroundDone()) + { + std::this_thread::sleep_for(std::chrono::milliseconds(10)); + } + std::lock_guard lock(worker.GetDataLock()); auto& plots = worker.GetPlots(); for(const auto& plot : plots) {