Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ protected CompletableFuture<Boolean> getCompletableFuture(SensitivityAnalysisRun
runContext.getReportNode())
.whenComplete((unused1, unused2) -> writer.setQueueProducerFinished())
.thenApply(unused -> {
while (!writer.isConsumerFinished()) {
// Nothing to do
try {
while (!writer.isConsumerFinished()) {
Thread.sleep(100);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick and dirty but accepted for the current fix

}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
writer.interrupt();
// used to check if result is not null
Expand Down