diff --git a/src/Durable/DurableTaskHandler.cs b/src/Durable/DurableTaskHandler.cs index 4b32b776..4752114a 100644 --- a/src/Durable/DurableTaskHandler.cs +++ b/src/Durable/DurableTaskHandler.cs @@ -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);