summaryrefslogtreecommitdiffstats
path: root/core/ajax
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 14:27:44 +0200
commitba2472575f6aa44bb04af8421f2bb868f980a1c7 (patch)
treeea7d62200cddde9509c5012bb92e2ab289547594 /core/ajax
parent53f6d74938647de6921da47d28bd06b30a708cc5 (diff)
downloadnextcloud-server-ba2472575f6aa44bb04af8421f2bb868f980a1c7.tar.gz
nextcloud-server-ba2472575f6aa44bb04af8421f2bb868f980a1c7.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/ajax')
-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 d2811f39dd6..56ef5ea847b 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';