2
0

Renamed Job.Reset to ResetProgress

This commit is contained in:
glax 2023-09-02 14:13:30 +02:00
parent 5465ac4e5c
commit 4cce2e04cb
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public abstract class Job : GlobalBase
return DateTime.MaxValue; return DateTime.MaxValue;
} }
public void Reset() public void ResetProgress()
{ {
this.progressToken = new ProgressToken(this.progressToken.increments); this.progressToken = new ProgressToken(this.progressToken.increments);
} }

View File

@ -142,7 +142,7 @@ public class JobBoss : GlobalBase
if (queueHead.progressToken.state is ProgressToken.State.Complete) if (queueHead.progressToken.state is ProgressToken.State.Complete)
{ {
if(queueHead.recurring) if(queueHead.recurring)
queueHead.Reset(); queueHead.ResetProgress();
jobQueue.Dequeue(); jobQueue.Dequeue();
}else if(queueHead.progressToken.state is ProgressToken.State.Standby) }else if(queueHead.progressToken.state is ProgressToken.State.Standby)
AddJobsToQueue(jobQueue.Peek().ExecuteReturnSubTasks()); AddJobsToQueue(jobQueue.Peek().ExecuteReturnSubTasks());