Skip to content

Commit

Permalink
Fix caching in LazyUpdateHandleImpl (#2098)
Browse files Browse the repository at this point in the history
* Fix caching in LazyUpdateHandleImpl

* Fix dumb condition mistake
  • Loading branch information
Quinn-With-Two-Ns authored Jun 6, 2024
1 parent bf392f5 commit 42b9803
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public String getId() {
public CompletableFuture<T> getResultAsync(long timeout, TimeUnit unit) {

WorkflowClientCallsInterceptor.PollWorkflowUpdateOutput<T> pollCall = null;
boolean setFromWaitCompleted = false;

// If waitCompleted was called, use the result from that call.
synchronized (this) {
Expand All @@ -85,7 +84,7 @@ public CompletableFuture<T> getResultAsync(long timeout, TimeUnit unit) {
}
}

if (!setFromWaitCompleted) {
if (pollCall == null) {
pollCall = pollUntilComplete(timeout, unit);
}

Expand Down

0 comments on commit 42b9803

Please sign in to comment.