Don't allow ZONE_FILLER::Fill to run more than once at a time
This commit is contained in:
parent
d043ef5bb6
commit
8c1847f7ab
|
@ -84,7 +84,8 @@ void ZONE_FILLER::Fill( std::vector<ZONE_CONTAINER*> aZones )
|
||||||
std::vector<CN_ZONE_ISOLATED_ISLAND_LIST> toFill;
|
std::vector<CN_ZONE_ISOLATED_ISLAND_LIST> toFill;
|
||||||
auto connectivity = m_board->GetConnectivity();
|
auto connectivity = m_board->GetConnectivity();
|
||||||
|
|
||||||
connectivity->Lock();
|
if( !connectivity->TryLock() )
|
||||||
|
return;
|
||||||
|
|
||||||
// Remove segment zones
|
// Remove segment zones
|
||||||
m_board->m_Zone.DeleteAll();
|
m_board->m_Zone.DeleteAll();
|
||||||
|
|
Loading…
Reference in New Issue