From 7291c318e4d8d58b389c826e1bcfde4551085e0a Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 2 Jul 2020 19:46:45 +1000 Subject: [PATCH] Fix Job debug timer (#1248) Co-authored-by: Metal Gear Sloth --- Content.Server/GameObjects/EntitySystems/JobQueues/Job.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/EntitySystems/JobQueues/Job.cs b/Content.Server/GameObjects/EntitySystems/JobQueues/Job.cs index 014d35575c..08379de594 100644 --- a/Content.Server/GameObjects/EntitySystems/JobQueues/Job.cs +++ b/Content.Server/GameObjects/EntitySystems/JobQueues/Job.cs @@ -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) {