aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-03-16 18:22:45 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-03-16 18:22:45 -0700
commit86f6938c38f05c52a391988ea17a54e1f19be203 (patch)
treea6d055b154932df762825d34a796cb652a72d3d8
parentdb69e2b3e8abf780706d7e73f9a48da3d6dfbed1 (diff)
parentd3858e9f964344755e6137aaee3be4c6e66132aa (diff)
downloadnextcloud-server-86f6938c38f05c52a391988ea17a54e1f19be203.tar.gz
nextcloud-server-86f6938c38f05c52a391988ea17a54e1f19be203.zip
Merge pull request #2387 from owncloud/cron-session-close
Close sessions when doing background jobs
-rw-r--r--cron.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index a202ca60bad..086f96f3665 100644
--- a/cron.php
+++ b/cron.php
@@ -48,6 +48,8 @@ function handleUnexpectedShutdown() {
$RUNTIME_NOSETUPFS = true;
require_once 'lib/base.php';
+session_write_close();
+
// Don't do anything if ownCloud has not been installed
if( !OC_Config::getValue( 'installed', false )) {
exit( 0 );