customTimeoutTime
This commit is contained in:
parent
0f4b084880
commit
0423937e8c
@ -151,7 +151,7 @@
|
||||
}
|
||||
|
||||
NSTimeInterval timeOutInterval = 60;
|
||||
if (requestParameters.customTimeoutTime) {
|
||||
if (requestParameters.customTimeoutTime && requestParameters.customTimeoutTime.integerValue > TimeOutTimeProd) {
|
||||
timeOutInterval = requestParameters.customTimeoutTime.floatValue;
|
||||
} else if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(timeOutIntervalForRequest:)]) {
|
||||
timeOutInterval = [[MVMCoreObject sharedInstance].globalLoadDelegate timeOutIntervalForRequest:requestParameters];
|
||||
|
||||
@ -67,6 +67,7 @@
|
||||
if (self = [self initWithPageType:[actionMap stringForKey:KeyPageType] additionalModules:[actionMap array:KeyModuleList] extraParameters:[actionMap dict:KeyExtraParameters]]) {
|
||||
self.contextRoot = [actionMap string:KeyContextRoot];
|
||||
self.actionMap = actionMap;
|
||||
self.customTimeoutTime = @([actionMap integer:@"customTimeoutTime"]);
|
||||
self.openSupportPanel = [actionMap boolForKey:KeyOpenSupport];
|
||||
|
||||
// Right now server is sending default.... can't uncomment this until they remove default
|
||||
@ -132,6 +133,7 @@
|
||||
copyObject.alternateBaseURL = self.alternateBaseURL;
|
||||
copyObject.openSupportPanel = self.openSupportPanel;
|
||||
copyObject.imageData = self.imageData;
|
||||
copyObject.customTimeoutTime = self.customTimeoutTime;
|
||||
return copyObject;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user