[Playlist Loader] Fix background queue post action

Post action now returns the files.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
lastfm
Christopher Snowhill 2022-07-04 17:37:32 -07:00
parent 1145bca042
commit af82399f37
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);
});