Merge pull request #2387 from owncloud/cron-session-close

Close sessions when doing background jobs
This commit is contained in:
Thomas Müller 2013-03-16 18:22:45 -07:00
commit 86f6938c38
1 changed files with 2 additions and 0 deletions

View File

@ -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 );