[Playlist Loader] Fix background queue post action
Post action now returns the files. Signed-off-by: Christopher Snowhill <kode54@gmail.com>xcode15
parent
aeee143de2
commit
92bce537d1
|
@ -346,8 +346,9 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
||||||
|
|
||||||
__block NSArray *outurls = nil;
|
__block NSArray *outurls = nil;
|
||||||
|
|
||||||
|
atomic_fetch_add(&self->loaderQueueRefCount, 1);
|
||||||
|
|
||||||
dispatch_async(loaderQueue, ^{
|
dispatch_async(loaderQueue, ^{
|
||||||
atomic_fetch_add(&self->loaderQueueRefCount, 1);
|
|
||||||
outurls = [self doInsertURLs:urls atIndex:index sort:sort];
|
outurls = [self doInsertURLs:urls atIndex:index sort:sort];
|
||||||
atomic_fetch_sub(&self->loaderQueueRefCount, 1);
|
atomic_fetch_sub(&self->loaderQueueRefCount, 1);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue