Skip to content

Commit

Permalink
Merge pull request #385 from oat-sa/fix/INF-262-clear-pause-reason-fo…
Browse files Browse the repository at this point in the history
…r-restarted-execution

fix: Clear the pause reason for the test being restarted
  • Loading branch information
hectoras authored Feb 27, 2024
2 parents 7c6dd8c + a28723b commit 1ceeb74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controller/DeliveryTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,12 @@ public function run()
if ($activeExecution->getState()->getUri() === DeliveryExecution::STATE_PAUSED) {
$this->getConcurringSessionService()->adjustTimers($activeExecution);
}

$this->getConcurringSessionService()->clearConcurringSession($activeExecution);
}

$this->resetDeliveryExecutionState($activeExecution);

$this->redirect($this->getLearnerUrl($compiledDelivery, $activeExecution));
} catch (QtiTestExtractionFailedException $e) {
common_Logger::i($e->getMessage());
Expand Down Expand Up @@ -232,7 +235,7 @@ public function launch1p3(): void

/**
* @param core_kernel_classes_Resource $delivery
* @param DeliveryExecution $activeExecution
* @param DeliveryExecution|null $activeExecution
*
* @return string
* @throws LtiException
Expand Down

0 comments on commit 1ceeb74

Please sign in to comment.