Skip to content

Commit

Permalink
MDL-70107 tool_task: Unlock session on long running tasks in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Nov 16, 2020
1 parent 6ef4e66 commit 2481b04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/tool/task/schedule_task.php
Expand Up @@ -83,6 +83,8 @@ function tool_task_mtrace_wrapper($message, $eol) {
// Action requires session key.
require_sesskey();

\core\session\manager::write_close();

// Prepare to handle output via mtrace.
echo html_writer::start_tag('pre');
$CFG->mtrace_wrapper = 'tool_task_mtrace_wrapper';
Expand Down

0 comments on commit 2481b04

Please sign in to comment.