File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ public void WaitAll(
130
130
}
131
131
132
132
var allTasksCompleted = completedEvents . Count == tasksToWaitFor . Count ;
133
- context . IsReplaying = completedEvents . Count == 0 ? false : completedEvents [ 0 ] . IsPlayed ;
134
133
if ( allTasksCompleted )
135
134
{
135
+ context . IsReplaying = completedEvents . Count == 0 ? false : completedEvents [ 0 ] . IsPlayed ;
136
136
CurrentUtcDateTimeUpdater . UpdateCurrentUtcDateTime ( context ) ;
137
137
138
138
foreach ( var completedHistoryEvent in completedEvents )
@@ -192,9 +192,9 @@ public void WaitAny(
192
192
}
193
193
194
194
var anyTaskCompleted = completedTasks . Count > 0 ;
195
- context . IsReplaying = context . History [ firstCompletedHistoryEventIndex ] . IsPlayed ;
196
195
if ( anyTaskCompleted )
197
196
{
197
+ context . IsReplaying = context . History [ firstCompletedHistoryEventIndex ] . IsPlayed ;
198
198
CurrentUtcDateTimeUpdater . UpdateCurrentUtcDateTime ( context ) ;
199
199
// Return a reference to the first completed task
200
200
output ( firstCompletedTask ) ;
You can’t perform that action at this time.
0 commit comments