HARD_CODED_RESPONSE_DELAY for simulations.
This commit is contained in:
parent
3dc05bea61
commit
1e8f7f417e
@ -299,6 +299,9 @@
|
|||||||
if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(getJSONForRequestParameters:)]) {
|
if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(getJSONForRequestParameters:)]) {
|
||||||
NSDictionary *json = [[MVMCoreObject sharedInstance].globalLoadDelegate getJSONForRequestParameters:requestParameters];
|
NSDictionary *json = [[MVMCoreObject sharedInstance].globalLoadDelegate getJSONForRequestParameters:requestParameters];
|
||||||
if (json) {
|
if (json) {
|
||||||
|
#if HARD_CODED_RESPONSE_DELAY > 0
|
||||||
|
[NSThread sleepForTimeInterval:HARD_CODED_RESPONSE_DELAY];
|
||||||
|
#endif
|
||||||
completionHandler(json);
|
completionHandler(json);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user