From 1e8f7f417eb6d298d1f300507da3391adfe12142 Mon Sep 17 00:00:00 2001 From: "Hedden, Kyle Matthew" Date: Tue, 17 Oct 2023 16:26:57 -0400 Subject: [PATCH] HARD_CODED_RESPONSE_DELAY for simulations. --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m index d6e352b..f0cc338 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m @@ -299,6 +299,9 @@ if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(getJSONForRequestParameters:)]) { NSDictionary *json = [[MVMCoreObject sharedInstance].globalLoadDelegate getJSONForRequestParameters:requestParameters]; if (json) { +#if HARD_CODED_RESPONSE_DELAY > 0 + [NSThread sleepForTimeInterval:HARD_CODED_RESPONSE_DELAY]; +#endif completionHandler(json); return; }