Skip to content

Commit 5fee443

Browse files
committed
patch test
patch test
1 parent 64f39d7 commit 5fee443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Durable/DurableTaskHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ public void WaitAll(
130130
}
131131

132132
var allTasksCompleted = completedEvents.Count == tasksToWaitFor.Count;
133-
context.IsReplaying = completedEvents.Count == 0 ? false : completedEvents[0].IsPlayed;
134133
if (allTasksCompleted)
135134
{
135+
context.IsReplaying = completedEvents.Count == 0 ? false : completedEvents[0].IsPlayed;
136136
CurrentUtcDateTimeUpdater.UpdateCurrentUtcDateTime(context);
137137

138138
foreach (var completedHistoryEvent in completedEvents)
@@ -192,9 +192,9 @@ public void WaitAny(
192192
}
193193

194194
var anyTaskCompleted = completedTasks.Count > 0;
195-
context.IsReplaying = context.History[firstCompletedHistoryEventIndex].IsPlayed;
196195
if (anyTaskCompleted)
197196
{
197+
context.IsReplaying = context.History[firstCompletedHistoryEventIndex].IsPlayed;
198198
CurrentUtcDateTimeUpdater.UpdateCurrentUtcDateTime(context);
199199
// Return a reference to the first completed task
200200
output(firstCompletedTask);

0 commit comments

Comments
 (0)