Guard background file info retrieval to prevent it in case only a single entry was added
This commit is contained in:
parent
7308aa5f7b
commit
0f543a1b52
1 changed files with 2 additions and 1 deletions
|
@ -469,6 +469,7 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL
|
|||
[restOfEntries removeObjectAtIndex:0];
|
||||
|
||||
[self performSelectorOnMainThread:@selector(syncLoadInfoForEntries:) withObject:firstEntry waitUntilDone:YES];
|
||||
if ([restOfEntries count])
|
||||
[self performSelectorInBackground:@selector(loadInfoForEntries:) withObject:restOfEntries];
|
||||
return entries;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue