Skip to content

Commit f561fbf

Browse files
committed
Invoke ensureOwnerAndJoined() first in GetFastestDeliveryTimeScope.result()
1 parent 447f8ad commit f561fbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/eu/happycoders/structuredconcurrency/demo3_suppliers/GetFastestDeliveryTimeScope.java

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ protected void handleComplete(Subtask<? extends SupplierDeliveryTime> subtask) {
3333
}
3434

3535
public SupplierDeliveryTime result() throws SupplierDeliveryTimeCheckException {
36+
ensureOwnerAndJoined();
37+
3638
log("--> fastestDeliveryTime = " + fastestDeliveryTime);
3739
log("--> exceptions = " + exceptions);
3840

0 commit comments

Comments
 (0)