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
parent
f6fef74651
commit
26f97fa043
|
@ -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
|
// Close zip and remove tmp dir
|
||||||
$zip->close();
|
$zip->close();
|
||||||
H5PCore::deleteFileTree($tmpPath);
|
H5PCore::deleteFileTree($tmpPath);
|
||||||
|
|
Loading…
Reference in New Issue