Skip to content

Commit 8bd740b

Browse files
committed
prevent Self-suppression not permitted
1 parent 894a234 commit 8bd740b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sdk/src/main/java/software/amazon/lambda/durable/operation/ParallelOperation.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ public ParallelResult get() {
113113
/** Calls {@link #get()} if not already called. Guarantees that the context is closed. */
114114
@Override
115115
public void close() {
116+
if (isJoined.get()) {
117+
return;
118+
}
116119
join();
117120
}
118121

0 commit comments

Comments
 (0)