From 0c5994269f9c252d25277f647dfbf1673ee7e076 Mon Sep 17 00:00:00 2001 From: Michael Aherne Date: Tue, 27 Sep 2016 12:25:06 +0100 Subject: [PATCH] MDL-56131 choice: Set maximum lifetime for lock --- mod/choice/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 5f9ded4d090..770077d09fa 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -345,7 +345,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); }