diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-03-17 00:48:10 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-03-17 00:48:10 +0100 |
commit | d3858e9f964344755e6137aaee3be4c6e66132aa (patch) | |
tree | a6d055b154932df762825d34a796cb652a72d3d8 /cron.php | |
parent | db69e2b3e8abf780706d7e73f9a48da3d6dfbed1 (diff) | |
download | nextcloud-server-d3858e9f964344755e6137aaee3be4c6e66132aa.tar.gz nextcloud-server-d3858e9f964344755e6137aaee3be4c6e66132aa.zip |
Close sessions when doing background jobs
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 ); |