From 8c1847f7ab96637a16d19db687391baae60a8fe7 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 22 Feb 2018 22:29:46 -0500 Subject: [PATCH] Don't allow ZONE_FILLER::Fill to run more than once at a time --- pcbnew/zone_filler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index 0bd9e340fa..6fe40555a6 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -84,7 +84,8 @@ void ZONE_FILLER::Fill( std::vector aZones ) std::vector toFill; auto connectivity = m_board->GetConnectivity(); - connectivity->Lock(); + if( !connectivity->TryLock() ) + return; // Remove segment zones m_board->m_Zone.DeleteAll();