Skip to content

Commit

Permalink
patch test
Browse files Browse the repository at this point in the history
patch test
  • Loading branch information
davidmrdavid committed Apr 4, 2022
1 parent 64f39d7 commit 5fee443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Durable/DurableTaskHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ public void WaitAll(
}

var allTasksCompleted = completedEvents.Count == tasksToWaitFor.Count;
context.IsReplaying = completedEvents.Count == 0 ? false : completedEvents[0].IsPlayed;
if (allTasksCompleted)
{
context.IsReplaying = completedEvents.Count == 0 ? false : completedEvents[0].IsPlayed;
CurrentUtcDateTimeUpdater.UpdateCurrentUtcDateTime(context);

foreach (var completedHistoryEvent in completedEvents)
Expand Down Expand Up @@ -192,9 +192,9 @@ public void WaitAny(
}

var anyTaskCompleted = completedTasks.Count > 0;
context.IsReplaying = context.History[firstCompletedHistoryEventIndex].IsPlayed;
if (anyTaskCompleted)
{
context.IsReplaying = context.History[firstCompletedHistoryEventIndex].IsPlayed;
CurrentUtcDateTimeUpdater.UpdateCurrentUtcDateTime(context);
// Return a reference to the first completed task
output(firstCompletedTask);
Expand Down

0 comments on commit 5fee443

Please sign in to comment.