Skip to content

Commit 97c4de3

Browse files
committed
Scripting: Exit callbacks loop properly if breakpoints don't get invalidated
1 parent 64c9c10 commit 97c4de3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/scripting.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,9 @@ static void _runCallbacks(struct mScriptDebugger* debugger, struct mScriptBreakp
808808
break;
809809
}
810810
} while (HashTableIteratorNext(&point->callbacks, &iter));
811+
if (!point->invalidated) {
812+
break;
813+
}
811814
}
812815

813816
HashTableDeinit(&visited);

0 commit comments

Comments
 (0)