We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1165934 commit dd43eafCopy full SHA for dd43eaf
Leanplum-SDK/Classes/LeanplumRequest.m
@@ -424,10 +424,9 @@ - (void)sendRequests:(BOOL)async
424
LP_TRY
425
NSLog(@"Leanplum: Request %@ timed out", _apiMethod);
426
[op cancel];
427
- if (_error != nil) {
428
- _error([NSError errorWithDomain:@"Leanplum" code:1
429
- userInfo:@{NSLocalizedDescriptionKey: @"Request timed out"}]);
430
- }
+ NSError *error = [NSError errorWithDomain:@"Leanplum" code:1
+ userInfo:@{NSLocalizedDescriptionKey: @"Request timed out"}];
+ [LPEventCallbackManager invokeErrorCallbacksWithError:error];
431
[[LeanplumRequest sendNowQueue] cancelAllOperations];
432
LP_END_TRY
433
}
0 commit comments