Added proper handling for SDWebImageDownloaderLowPriority (aka NSOperationQueuePriorityLow). Fixes #713 #745
This commit is contained in:
parent
a8f5627052
commit
136daba9df
|
@ -155,6 +155,8 @@ static NSString *const kCompletedCallbackKey = @"completed";
|
||||||
|
|
||||||
if (options & SDWebImageDownloaderHighPriority) {
|
if (options & SDWebImageDownloaderHighPriority) {
|
||||||
operation.queuePriority = NSOperationQueuePriorityHigh;
|
operation.queuePriority = NSOperationQueuePriorityHigh;
|
||||||
|
} else if (options & SDWebImageDownloaderLowPriority) {
|
||||||
|
operation.queuePriority = NSOperationQueuePriorityLow;
|
||||||
}
|
}
|
||||||
|
|
||||||
[wself.downloadQueue addOperation:operation];
|
[wself.downloadQueue addOperation:operation];
|
||||||
|
|
Loading…
Reference in New Issue