Skip to content

Commit

Permalink
always a stupid typo
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 23, 2024
1 parent 0e862d3 commit 6aed0b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/workflows/sync_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func SyncFlowWorkflow(
}
})

for ctx.Err() == nil && !syncDone && !selector.HasPending() {
for ctx.Err() == nil && !syncDone && selector.HasPending() {
selector.Select(ctx)
}
if ctx.Err() != nil {
Expand All @@ -206,7 +206,7 @@ func SyncFlowWorkflow(
waitChan.Receive(ctx)
if restart {
// must flush selector for signals received while waiting
for ctx.Err() == nil && !selector.HasPending() {
for ctx.Err() == nil && selector.HasPending() {
selector.Select(ctx)
}
break
Expand Down

0 comments on commit 6aed0b3

Please sign in to comment.