write_close the session when scanning files or music

This commit is contained in:
Robin Appelman 2012-06-16 01:35:39 +02:00
parent 195c37f88a
commit bf2062b09d
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ if(!$checkOnly){
$eventSource=new OC_EventSource();
}
session_write_close();
//create the file cache if necesary
if($force or !OC_FileCache::inCache('')){

View File

@ -46,6 +46,9 @@ if(!isset($arguments['album'])){
if(!isset($arguments['search'])){
$arguments['search']='';
}
session_write_close();
OC_MEDIA_COLLECTION::$uid=OCP\USER::getUser();
if($arguments['action']){
switch($arguments['action']){