[Playlist Loader] Fix background queue post action

Post action now returns the files.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
xcode15
Christopher Snowhill 2022-07-04 17:37:32 -07:00
parent aeee143de2
commit 92bce537d1
1 changed files with 2 additions and 1 deletions

View File

@ -346,8 +346,9 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
__block NSArray *outurls = nil;
atomic_fetch_add(&self->loaderQueueRefCount, 1);
dispatch_async(loaderQueue, ^{
atomic_fetch_add(&self->loaderQueueRefCount, 1);
outurls = [self doInsertURLs:urls atIndex:index sort:sort];
atomic_fetch_sub(&self->loaderQueueRefCount, 1);
});