MDL-56131 choice: Set maximum lifetime for lock

This commit is contained in:
Michael Aherne
2016-10-17 13:51:08 +08:00
committed by Andrew Nicols
parent 0b70ff8a16
commit 6e4ad85606
+1 -1
View File
@@ -293,7 +293,7 @@ function choice_user_submit_response($formanswer, $choice, $userid, $course, $cm
$lockfactory = \core\lock\lock_config::get_lock_factory($locktype);
// Opening the lock.
$choicelock = $lockfactory->get_lock($resouce, $timeout);
$choicelock = $lockfactory->get_lock($resouce, $timeout, MINSECS);
if (!$choicelock) {
print_error('cannotsubmit', 'choice', $continueurl);
}