Skip to content

Commit

Permalink
readability + spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Oct 17, 2023
1 parent 8c1628f commit e65ae33
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,18 +242,17 @@ public BarrageTable blockUntilComplete() throws InterruptedException {
}

if (holdingUpdateGraphLock) {
while (!completed && exceptionWhileCompleting == null) {
while (!checkIfCompleteOrThrow()) {
completedCondition.await();
}
} else {
synchronized (this) {
while (!completed && exceptionWhileCompleting == null) {
while (!checkIfCompleteOrThrow()) {
wait(); // BarrageSubscriptionImpl lock
}
}
}

checkIfCompleteOrThrow();
return resultTable;
}

Expand Down

0 comments on commit e65ae33

Please sign in to comment.