From 4393a42f51e73edeb6317fa557884f0d330d3a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Arroyo?= Date: Tue, 16 Jan 2024 15:14:24 +0100 Subject: [PATCH] chore: Cleanup --- model/Service/ConcurringSessionService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/model/Service/ConcurringSessionService.php b/model/Service/ConcurringSessionService.php index dada0e03b..b6554442a 100644 --- a/model/Service/ConcurringSessionService.php +++ b/model/Service/ConcurringSessionService.php @@ -96,9 +96,10 @@ public function pauseConcurrentSessions(DeliveryExecution $activeExecution): voi foreach ($userExecutions as $execution) { $executionId = $execution->getOriginalIdentifier(); + if ($executionId !== $activeExecution->getOriginalIdentifier()) { try { - $this->setConcurringSession($execution->getOriginalIdentifier()); + $this->setConcurringSession($executionId); $context = $this->getContextByDeliveryExecution($execution); $this->qtiRunnerService->endTimer($context); @@ -110,7 +111,7 @@ public function pauseConcurrentSessions(DeliveryExecution $activeExecution): voi sprintf( '%s: Unable to pause delivery execution %s: %s', self::class, - $execution->getOriginalIdentifier(), + $executionId, $e->getMessage() ) );