From f6f67314dad8b90ca22b918de033257f189e3dcb Mon Sep 17 00:00:00 2001 From: matt-in-a-hat Date: Tue, 16 May 2017 11:03:49 +1200 Subject: [PATCH] Fix markStarted not calculating timeout correctly --- src/Services/QueuedJobService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/QueuedJobService.php b/src/Services/QueuedJobService.php index d282e8fc..ab302800 100644 --- a/src/Services/QueuedJobService.php +++ b/src/Services/QueuedJobService.php @@ -906,7 +906,7 @@ protected function unsetRunAsUser(Member $runAsUser = null, Member $originalUser */ protected function markStarted() { - if ($this->startedAt) { + if (!$this->startedAt) { $this->startedAt = DBDatetime::now()->Format('U'); } }