1
1
mirror of https://github.com/VKCOM/vk-ios-sdk.git synced 2024-09-11 06:45:37 +03:00

Merge pull request #579 from VKCOM/savin/vkrequest-error-fix

Fixed nil error in VKRequest
This commit is contained in:
Aleksei Savin 2020-11-06 15:32:35 +03:00 committed by GitHub
commit aa404ef3cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "VK-ios-sdk"
s.version = "1.5.1"
s.version = "1.6.1"
s.summary = "Library for working with VK."
s.homepage = "https://github.com/VKCOM/vk-ios-sdk"
s.license = 'MIT'

View File

@ -419,13 +419,14 @@ void vksdk_dispatch_on_main_queue_now(void(^block)(void)) {
- (void)finishRequest {
void (^block)(void) = NULL;
if (self.error) {
NSError *error = self.error;
block = ^{
if (self.errorBlock) {
self.errorBlock(self.error);
self.errorBlock(error);
}
for (VKRequest *postRequest in self->_postRequestsQueue) {
if (postRequest.errorBlock) {
postRequest.errorBlock(self.error);
postRequest.errorBlock(error);
}
}
};

View File

@ -20,5 +20,5 @@
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define VK_SDK_VERSION @"1.4.7"
#define VK_SDK_VERSION @"1.6.1"
#define VK_SDK_API_VERSION @"5.122"