]> source.dussan.org Git - nextcloud-server.git/commitdiff
write_close the session when scanning files or music
authorRobin Appelman <icewind@owncloud.com>
Fri, 15 Jun 2012 23:35:39 +0000 (01:35 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 15 Jun 2012 23:35:39 +0000 (01:35 +0200)
apps/files/ajax/scan.php
apps/media/ajax/api.php

index d695ce816171b8ee7460b2272804c91f6cfd9d7e..6fcf97688c2ddf6950b76cf6453cc939c2e417b3 100644 (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('')){
index a229c17e80423a17940307480eb1209ec8b285fd..23abc579272b6ec40cf29dd73e2556c1c4d781fe 100644 (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']){