Fix Job<T> debug timer (#1248)

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-07-02 19:46:45 +10:00
committed by GitHub
parent faf0ed8af1
commit 7291c318e4

View File

@@ -127,6 +127,7 @@ namespace Content.Server.GameObjects.EntitySystems.JobQueues
public void Run()
{
StopWatch.Restart();
_workInProgress ??= ProcessWrap();
if (Status == JobStatus.Finished)
@@ -140,7 +141,6 @@ namespace Content.Server.GameObjects.EntitySystems.JobQueues
_resume = null;
Status = JobStatus.Running;
StopWatch.Restart();
if (Cancellation.IsCancellationRequested)
{