GP-0: Fix testActionCopyIntoNewProgramCaptureLive

This commit is contained in:
Dan 2022-04-28 15:17:37 -04:00
parent 40c700041d
commit 0a5f411023

View file

@ -810,7 +810,13 @@ public class DebuggerCopyIntoProgramDialog extends DialogComponentProvider {
throws Exception {
synchronized (this) {
monitor.checkCanceled();
this.captureTask = recorder.captureProcessMemory(new AddressSet(range), monitor, false);
CompletableFuture<NavigableMap<Address, byte[]>> recCapture =
recorder.captureProcessMemory(new AddressSet(range), monitor, false);
this.captureTask = recCapture.thenCompose(__ -> {
return recorder.getTarget().getModel().flushEvents();
}).thenCompose(__ -> {
return recorder.flushTransactions();
});
}
try {
captureTask.get(); // Not a fan, but whatever.