Skip to content

Commit

Permalink
Merge pull request #23 from jsconan/fix/session_resume
Browse files Browse the repository at this point in the history
AssessmentTestSession: fix condition to resume a session
  • Loading branch information
Jérôme Bogaerts committed Nov 20, 2015
2 parents 4d09836 + 0edf18a commit f6669a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtism/runtime/tests/AssessmentTestSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ public function suspend() {
* Resume the current test session if it is suspended.
*/
public function resume() {
if ($this->isRunning() === false) {
if ($this->getState() === AssessmentTestSessionState::SUSPENDED) {
$this->interactWithItemSession();
$this->setState(AssessmentTestSessionState::INTERACTING);
}
Expand Down

0 comments on commit f6669a3

Please sign in to comment.