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:
commit
aa404ef3cc
@ -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'
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user