summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-29 14:27:44 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-29 22:03:58 +0200
commit7eb0d6866c6ed48364c238708530fa72faa7190d (patch)
tree307df820caee04872f3931d061e846cfff0a8456 /core
parent5ddacaed7f5ba5a238f0373f813ab0bb2cdd6e9b (diff)
downloadnextcloud-server-7eb0d6866c6ed48364c238708530fa72faa7190d.tar.gz
nextcloud-server-7eb0d6866c6ed48364c238708530fa72faa7190d.zip
Close the session for preview generation
Without closing the session every preview image generation is locking the session which makes the webinterface unresponsive.
Diffstat (limited to 'core')
-rw-r--r--core/ajax/preview.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/ajax/preview.php b/core/ajax/preview.php
index edbd41d2db4..75dace71a43 100644
--- a/core/ajax/preview.php
+++ b/core/ajax/preview.php
@@ -6,6 +6,7 @@
* See the COPYING-README file.
*/
\OC_Util::checkLoggedIn();
+\OC::$server->getSession()->close();
$file = array_key_exists('file', $_GET) ? (string)$_GET['file'] : '';
$maxX = array_key_exists('x', $_GET) ? (int)$_GET['x'] : '36';