Files
PINRemoteImage/Pod/Classes/PINRemoteImageProcessorTask.m

31 lines
787 B
Objective-C

//
// PINRemoteImageProcessorTask.m
// Pods
//
// Created by Garrett Moon on 3/9/15.
//
//
#import "PINRemoteImageProcessorTask.h"
@implementation PINRemoteImageProcessorTask
#warning It's the same problem like in PINRemoteImageTask, the manager is not used
- (BOOL)cancelWithUUID:(NSUUID *)UUID manager:(PINRemoteImageManager *)manager
{
BOOL noMoreCompletions = [super cancelWithUUID:UUID manager:manager];
if (noMoreCompletions && self.downloadTaskUUID) {
[manager cancelTaskWithUUID:self.downloadTaskUUID];
_downloadTaskUUID = nil;
}
return noMoreCompletions;
}
- (void)setDownloadTaskUUID:(NSUUID *)downloadTaskUUID
{
NSAssert(_downloadTaskUUID == nil, @"downloadTaskUUID should be nil");
_downloadTaskUUID = downloadTaskUUID;
}
@end