Skip to content

Commit d69b5fe

Browse files
skip
1 parent 5b73011 commit d69b5fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/core/src/main/java/org/elasticsearch/core/Releasables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static void closeWhileHandlingException(Releasable... releasables) {
8888
}
8989

9090
private static RuntimeException useOrSuppress(RuntimeException firstException, RuntimeException e) {
91-
if (firstException == null) {
91+
if (firstException == null || firstException == e) {
9292
return e;
9393
}
9494
firstException.addSuppressed(e);

0 commit comments

Comments
 (0)