Renamed Job.Reset to ResetProgress
This commit is contained in:
parent
5465ac4e5c
commit
4cce2e04cb
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user