Skip to content

Commit

Permalink
Accepted unchanged data is still recorded into the result state.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdedic committed Aug 26, 2024
1 parent bb42d71 commit fd5ec2e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ public void cancel(CancellationException cancelled) {
}

private CompletableFuture<ProjectReload.ProjectState> loadStepDone(ProjectStateData<?> state, LoadContextImpl fd, Throwable t) {
loadStepDone1(state, fd, t);
return processOne();
}

private void loadStepDone1(ProjectStateData<?> state, LoadContextImpl fd, Throwable t) {
// record the returned data for subsequent rounds:
if (t != null) {
fd.reloadError = t;
Expand All @@ -571,7 +576,6 @@ private CompletableFuture<ProjectReload.ProjectState> loadStepDone(ProjectStateD
LOG.log(Level.FINE, "{0} {1} loaded {2} with load-private data {3}", new Object[]{this, fd.impl, state, fd.contextData});
currentStage = null;
currentStageContext = null;
return processOne();
}

/**
Expand Down Expand Up @@ -656,6 +660,7 @@ synchronized CompletableFuture<ProjectReload.ProjectState> processOne() {
LOG.log(Level.FINE, "{0}: {1} rejected by {2}", new Object[]{this, d.loadedData, d.impl});
break;
}
loadStepDone1(d.loadedData, d, null);
}
final LoadContextImpl fd = d;
try {
Expand Down

0 comments on commit fd5ec2e

Please sign in to comment.