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(
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 ) ;
You can’t perform that action at this time.
0 commit comments