diff --git a/sdk/Source/Core/VKRequest.m b/sdk/Source/Core/VKRequest.m index 42739b5..71ab3da 100644 --- a/sdk/Source/Core/VKRequest.m +++ b/sdk/Source/Core/VKRequest.m @@ -401,9 +401,11 @@ } - (void)cancel { + _executionOperation.completionBlock = nil; [_executionOperation cancel]; + _executionOperation = nil; [NSObject cancelPreviousPerformRequestsWithTarget:self]; -// [self provideError:[NSError errorWithVkError:[VKError errorWithCode:VK_API_CANCELED]]]; + [self provideError:[NSError errorWithVkError:[VKError errorWithCode:VK_API_CANCELED]]]; } - (void)setupProgress:(VKHTTPOperation *)operation {