Skip to content

Commit e1e0841

Browse files
committed
Rename the internal property to avoid misleading
1 parent 007100d commit e1e0841

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SDWebImage/Core/SDImageCache.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ @interface SDImageCacheToken ()
2121
@property (nonatomic, strong, nullable, readwrite) NSString *key;
2222
@property (nonatomic, assign, getter=isCancelled) BOOL cancelled;
2323
@property (nonatomic, copy, nullable) SDImageCacheQueryCompletionBlock doneBlock;
24-
@property (nonatomic, strong, nullable) SDCallbackQueue *queue;
24+
@property (nonatomic, strong, nullable) SDCallbackQueue *callbackQueue;
2525

2626
@end
2727

@@ -45,7 +45,7 @@ - (void)cancel {
4545
SDImageCacheQueryCompletionBlock doneBlock = self.doneBlock;
4646
self.doneBlock = nil;
4747
if (doneBlock) {
48-
[(self.queue ?: SDCallbackQueue.mainQueue) async:^{
48+
[(self.callbackQueue ?: SDCallbackQueue.mainQueue) async:^{
4949
doneBlock(nil, nil, SDImageCacheTypeNone);
5050
}];
5151
}
@@ -611,7 +611,7 @@ - (nullable SDImageCacheToken *)queryCacheOperationForKey:(nullable NSString *)k
611611
SDCallbackQueue *queue = context[SDWebImageContextCallbackQueue];
612612
SDImageCacheToken *operation = [[SDImageCacheToken alloc] initWithDoneBlock:doneBlock];
613613
operation.key = key;
614-
operation.queue = queue;
614+
operation.callbackQueue = queue;
615615
// Check whether we need to synchronously query disk
616616
// 1. in-memory cache hit & memoryDataSync
617617
// 2. in-memory cache miss & diskDataSync

0 commit comments

Comments
 (0)