Skip to content

Commit

Permalink
Added proper handling for SDWebImageDownloaderLowPriority (aka NSOper…
Browse files Browse the repository at this point in the history
…ationQueuePriorityLow). Fixes SDWebImage#713 SDWebImage#745
  • Loading branch information
bpoplauschi authored and devedup committed Sep 10, 2014
1 parent 658d9f5 commit 18df27d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SDWebImage/SDWebImageDownloader.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ - (NSInteger)maxConcurrentDownloads {

if (options & SDWebImageDownloaderHighPriority) {
operation.queuePriority = NSOperationQueuePriorityHigh;
} else if (options & SDWebImageDownloaderLowPriority) {
operation.queuePriority = NSOperationQueuePriorityLow;
}

[wself.downloadQueue addOperation:operation];
Expand Down

0 comments on commit 18df27d

Please sign in to comment.