Make sure that threads are not running after zone filling.

This commit is contained in:
Alex 2022-12-05 21:36:59 +03:00
parent 6d513e7ecf
commit c4aed1d941
1 changed files with 5 additions and 0 deletions

View File

@ -417,6 +417,11 @@ bool ZONE_FILLER::Fill( std::vector<ZONE*>& aZones, bool aCheck, wxWindow* aPare
} }
} }
// Make sure the threads are not running
for( auto& ret : returns )
if( ret.first.valid() )
ret.first.wait();
// Now update the connectivity to check for isolated copper islands // Now update the connectivity to check for isolated copper islands
// (NB: FindIsolatedCopperIslands() is multi-threaded) // (NB: FindIsolatedCopperIslands() is multi-threaded)
// //