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

dont send to much when scanning large folders

parent 9d2f8aa7
No related branches found
No related tags found
No related merge requests found
......@@ -490,10 +490,9 @@ class OC_FileCache{
}else{
$totalSize+=self::scanFile($file,$root);
$count++;
if($count>$lastSend+25){
if($eventSource){
$eventSource->send('scanning',array('file'=>$path,'count'=>$count));
}
if($count>$lastSend+25 and $eventSource){
$lastSend=$count;
$eventSource->send('scanning',array('file'=>$path,'count'=>$count));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment