Skip to content

Commit

Permalink
chore: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hectoras committed Jan 16, 2024
1 parent 8da35ae commit 4393a42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions model/Service/ConcurringSessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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()
)
);
Expand Down

0 comments on commit 4393a42

Please sign in to comment.