Close sessions when doing background jobs
This commit is contained in:
parent
db69e2b3e8
commit
d3858e9f96
2
cron.php
2
cron.php
|
@ -48,6 +48,8 @@ function handleUnexpectedShutdown() {
|
||||||
$RUNTIME_NOSETUPFS = true;
|
$RUNTIME_NOSETUPFS = true;
|
||||||
require_once 'lib/base.php';
|
require_once 'lib/base.php';
|
||||||
|
|
||||||
|
session_write_close();
|
||||||
|
|
||||||
// Don't do anything if ownCloud has not been installed
|
// Don't do anything if ownCloud has not been installed
|
||||||
if( !OC_Config::getValue( 'installed', false )) {
|
if( !OC_Config::getValue( 'installed', false )) {
|
||||||
exit( 0 );
|
exit( 0 );
|
||||||
|
|
Loading…
Reference in New Issue