Only execute in main queue
This commit is contained in:
parent
f1fa6f1a6f
commit
95bcd2278c
1 changed files with 2 additions and 1 deletions
|
|
@ -149,8 +149,9 @@ static inline NSString * AFKeyPathFromOperationState(AFOperationState state) {
|
||||||
|
|
||||||
__block id _blockSelf = self;
|
__block id _blockSelf = self;
|
||||||
[super setCompletionBlock:^ {
|
[super setCompletionBlock:^ {
|
||||||
|
block();
|
||||||
|
|
||||||
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
||||||
block();
|
|
||||||
[_blockSelf setCompletionBlock:nil];
|
[_blockSelf setCompletionBlock:nil];
|
||||||
});
|
});
|
||||||
}];
|
}];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue