write_close the session when scanning files or music
This commit is contained in:
parent
195c37f88a
commit
bf2062b09d
|
@ -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'])){
|
||||||
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']){
|
||||||
|
|
Loading…
Reference in New Issue