Fix Job<T> debug timer (#1248)
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -127,6 +127,7 @@ namespace Content.Server.GameObjects.EntitySystems.JobQueues
|
|||||||
|
|
||||||
public void Run()
|
public void Run()
|
||||||
{
|
{
|
||||||
|
StopWatch.Restart();
|
||||||
_workInProgress ??= ProcessWrap();
|
_workInProgress ??= ProcessWrap();
|
||||||
|
|
||||||
if (Status == JobStatus.Finished)
|
if (Status == JobStatus.Finished)
|
||||||
@@ -140,7 +141,6 @@ namespace Content.Server.GameObjects.EntitySystems.JobQueues
|
|||||||
_resume = null;
|
_resume = null;
|
||||||
|
|
||||||
Status = JobStatus.Running;
|
Status = JobStatus.Running;
|
||||||
StopWatch.Restart();
|
|
||||||
|
|
||||||
if (Cancellation.IsCancellationRequested)
|
if (Cancellation.IsCancellationRequested)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user