Skip to content
This repository was archived by the owner on Dec 21, 2019. It is now read-only.

Commit d263e0f

Browse files
authored
Fix sync period (really now)
1 parent a41b898 commit d263e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rocket.UnityEngine/Scheduling/UnityTaskScheduler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public virtual void Update()
125125
var cpy = Tasks.ToList(); // we need a copy because the task list may be modified at runtime
126126
foreach (ITask task in cpy.Where(c => !c.IsFinished && !c.IsCancelled))
127127
{
128-
if(task.Period == null && task.ExecutionTarget != ExecutionTargetContext.Sync)
128+
if(task.Period == null || (task.Period != null && task.ExecutionTarget != ExecutionTargetContext.Sync))
129129
if (task.ExecutionTarget != ExecutionTargetContext.EveryFrame
130130
&& task.ExecutionTarget != ExecutionTargetContext.NextFrame)
131131
continue;

0 commit comments

Comments
 (0)