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) {