Guard background file info retrieval to prevent it in case only a single entry was added
parent
7308aa5f7b
commit
0f543a1b52
|
@ -469,7 +469,8 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL
|
||||||
[restOfEntries removeObjectAtIndex:0];
|
[restOfEntries removeObjectAtIndex:0];
|
||||||
|
|
||||||
[self performSelectorOnMainThread:@selector(syncLoadInfoForEntries:) withObject:firstEntry waitUntilDone:YES];
|
[self performSelectorOnMainThread:@selector(syncLoadInfoForEntries:) withObject:firstEntry waitUntilDone:YES];
|
||||||
[self performSelectorInBackground:@selector(loadInfoForEntries:) withObject:restOfEntries];
|
if ([restOfEntries count])
|
||||||
|
[self performSelectorInBackground:@selector(loadInfoForEntries:) withObject:restOfEntries];
|
||||||
return entries;
|
return entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue