Skip to content

Commit

Permalink
test: Fix spotbugs warning in InterruptIssue158Test
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Jul 1, 2024
1 parent 3f1c393 commit c2a4109
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ private void withServer(boolean acceptConnections, ThrowingRunnable func) throws
if (DELAY_CLOSE) {
CompletableFuture.runAsync(() -> {
try {
done.tryAcquire(1, TimeUnit.SECONDS);
if (!done.tryAcquire(1, TimeUnit.SECONDS)) {
// ignore
}
} catch (InterruptedException e) {
// ignore
}
Expand Down

0 comments on commit c2a4109

Please sign in to comment.