GP-0: Fix async invocation of model's listeners.

This commit is contained in:
Dan 2023-10-12 13:58:29 -04:00
parent 3f6c5ca189
commit da0aeefa4f
9 changed files with 20 additions and 12 deletions

View file

@ -110,7 +110,7 @@ public class DbgModelImpl extends AbstractDbgModel implements DebuggerObjectMode
@Override
public void terminate() throws IOException {
listeners.invoke().modelClosed(DebuggerModelClosedReason.NORMAL);
broadcast().modelClosed(DebuggerModelClosedReason.NORMAL);
root.invalidateSubtree(root, "Dbgeng is terminating");
dbg.terminate();
}