Merge branch 'charlesmchen/callVsBackground'

pull/1/head
Matthew Chen 7 years ago
commit abfdca65c2

@ -38,7 +38,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2.26.0.14</string> <string>2.26.0.16</string>
<key>ITSAppUsesNonExemptEncryption</key> <key>ITSAppUsesNonExemptEncryption</key>
<false/> <false/>
<key>LOGS_EMAIL</key> <key>LOGS_EMAIL</key>

@ -532,6 +532,12 @@ NSString *const kNSNotification_SocketManagerStateDidChange = @"kNSNotification_
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, kSocketTimeoutSeconds * NSEC_PER_SEC), dispatch_after(dispatch_time(DISPATCH_TIME_NOW, kSocketTimeoutSeconds * NSEC_PER_SEC),
dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),
^{ ^{
DDLogError(@"%@ message timed out: %lld, %@, %@, %zd.",
self.logTag,
socketMessage.requestId,
request.HTTPMethod,
requestPath,
jsonData.length);
[weakSocketMessage didFailBeforeSending]; [weakSocketMessage didFailBeforeSending];
}); });
} }
@ -639,6 +645,8 @@ NSString *const kNSNotification_SocketManagerStateDidChange = @"kNSNotification_
[self.socketMessageMap removeAllObjects]; [self.socketMessageMap removeAllObjects];
} }
DDLogInfo(@"%@ failAllPendingSocketMessages: %zd.", self.logTag, socketMessages.count);
for (TSSocketMessage *socketMessage in socketMessages) { for (TSSocketMessage *socketMessage in socketMessages) {
[socketMessage didFailBeforeSending]; [socketMessage didFailBeforeSending];
} }

@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>2.26.0</string> <string>2.26.0</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2.26.0.14</string> <string>2.26.0.16</string>
<key>ITSAppUsesNonExemptEncryption</key> <key>ITSAppUsesNonExemptEncryption</key>
<false/> <false/>
<key>NSAppTransportSecurity</key> <key>NSAppTransportSecurity</key>

Loading…
Cancel
Save