Trivial change to avoid crash on tool re-entry
See https://gitlab.com/kicad/code/kicad/-/issues/17164
This commit is contained in:
parent
c3af434741
commit
299b548a41
|
@ -704,7 +704,7 @@ TOOL_EVENT* TOOL_MANAGER::ScheduleWait( TOOL_BASE* aTool, const TOOL_EVENT_LIST&
|
||||||
{
|
{
|
||||||
TOOL_STATE* st = m_toolState[aTool];
|
TOOL_STATE* st = m_toolState[aTool];
|
||||||
|
|
||||||
wxASSERT( !st->pendingWait ); // everything collapses on two KiYield() in a row
|
wxCHECK( !st->pendingWait, nullptr ); // everything collapses on two KiYield() in a row
|
||||||
|
|
||||||
// indicate to the manager that we are going to sleep and we shall be
|
// indicate to the manager that we are going to sleep and we shall be
|
||||||
// woken up when an event matching aConditions arrive
|
// woken up when an event matching aConditions arrive
|
||||||
|
|
Loading…
Reference in New Issue