Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.

Commit cdbb931

Browse files
committed
DFImageManagerImageLoader creates loader task on _queue
1 parent ea8caea commit cdbb931

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DFImageManager/Source/Core/Private/DFImageManagerImageLoader.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ - (nonnull instancetype)initWithConfiguration:(nonnull DFImageManagerConfigurati
189189
}
190190

191191
- (void)startLoadingForImageTask:(nonnull DFImageTask *)imageTask {
192-
_DFImageLoaderTask *loaderTask = [[_DFImageLoaderTask alloc] initWithImageTask:imageTask];
193-
_executingTasks[imageTask] = loaderTask;
194192
dispatch_async(_queue, ^{
193+
_DFImageLoaderTask *loaderTask = [[_DFImageLoaderTask alloc] initWithImageTask:imageTask];
194+
_executingTasks[imageTask] = loaderTask;
195195
[self _startLoadOperationForTask:loaderTask];
196196
});
197197
}

0 commit comments

Comments
 (0)