Added proper handling for SDWebImageDownloaderLowPriority (aka NSOperationQueuePriorityLow). Fixes #713 #745

This commit is contained in:
Bogdan Poplauschi 2014-06-19 22:19:22 +03:00
parent a8f5627052
commit 136daba9df
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,8 @@ static NSString *const kCompletedCallbackKey = @"completed";
if (options & SDWebImageDownloaderHighPriority) {
operation.queuePriority = NSOperationQueuePriorityHigh;
} else if (options & SDWebImageDownloaderLowPriority) {
operation.queuePriority = NSOperationQueuePriorityLow;
}
[wself.downloadQueue addOperation:operation];