H5P module locking session after saving

Close session before finishing zip file, which might take substantial time to allow other pages to use session without waiting on the file operation to finish.
pull/104/head
Kateryna Degtyariova 2021-08-24 11:50:21 +10:00
parent f6fef74651
commit 26f97fa043
1 changed files with 5 additions and 0 deletions

View File

@ -1927,6 +1927,11 @@ Class H5PExport {
}
}
// Close session before finishing zip file, which might take
// substantial time to allow other pages to use session without
// waiting on the file operation to finish.
\core\session\manager::write_close();
// Close zip and remove tmp dir
$zip->close();
H5PCore::deleteFileTree($tmpPath);