Skip to content

Commit

Permalink
[pinpoint-apm#11050] Replace StopFlag with CompletableFuture.cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Jun 5, 2024
1 parent a508052 commit eec5953
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void appendServerInfo(final Range range, final NodeList source, final Lin
try {
CompletableFuture.allOf(futures).get(timeoutMillis, TimeUnit.MILLISECONDS);
} catch (InterruptedException | ExecutionException | TimeoutException e) {
CompletableFuture.allOf(futures).cancel(true);
CompletableFuture.allOf(futures).cancel(false);
String cause = "an error occurred while adding server info";
if (e instanceof TimeoutException) {
cause += " build timed out. timeout=" + timeoutMillis + "ms";
Expand Down

0 comments on commit eec5953

Please sign in to comment.