Skip to content
Snippets Groups Projects
Commit bf2062b0 authored by Robin Appelman's avatar Robin Appelman
Browse files

write_close the session when scanning files or music

parent 195c37f8
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ if(!$checkOnly){ ...@@ -10,6 +10,7 @@ if(!$checkOnly){
$eventSource=new OC_EventSource(); $eventSource=new OC_EventSource();
} }
session_write_close();
//create the file cache if necesary //create the file cache if necesary
if($force or !OC_FileCache::inCache('')){ if($force or !OC_FileCache::inCache('')){
......
...@@ -46,6 +46,9 @@ if(!isset($arguments['album'])){ ...@@ -46,6 +46,9 @@ if(!isset($arguments['album'])){
if(!isset($arguments['search'])){ if(!isset($arguments['search'])){
$arguments['search']=''; $arguments['search']='';
} }
session_write_close();
OC_MEDIA_COLLECTION::$uid=OCP\USER::getUser(); OC_MEDIA_COLLECTION::$uid=OCP\USER::getUser();
if($arguments['action']){ if($arguments['action']){
switch($arguments['action']){ switch($arguments['action']){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment