From 75ffc4454db46401dc885c6487aa1a6938d06a75 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 25 Nov 2021 12:05:39 +0100 Subject: [PATCH] #1895 don't signal element ready when result is empty --- src/ifcgeom/IfcGeomIteratorImplementation.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifcgeom/IfcGeomIteratorImplementation.h b/src/ifcgeom/IfcGeomIteratorImplementation.h index af6dbf9225..6e06cc275c 100644 --- a/src/ifcgeom/IfcGeomIteratorImplementation.h +++ b/src/ifcgeom/IfcGeomIteratorImplementation.h @@ -288,6 +288,10 @@ namespace IfcGeom { size_t processed_ = 0; void process_finished_rep(geometry_conversion_task* rep) { + if (rep->elements.empty()) { + return; + } + std::lock_guard lk(element_ready_mutex_); all_processed_elements_.insert(all_processed_elements_.end(), rep->elements.begin(), rep->elements.end());