From e6ca9ec67d9e62430ddf79f8b934414e94c294ec Mon Sep 17 00:00:00 2001 From: Krishna Kishore Bandaru Date: Tue, 2 May 2023 20:07:40 +0530 Subject: [PATCH] Bug fix while setting identifier --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m | 2 ++ MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m index 3e5ae1f..64d67ce 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadHandler.m @@ -389,6 +389,7 @@ return [self loadBackgroundRequest:requestParameters dataForPage:dataForPage delegateObject:delegateObject]; } else { MVMCoreLoadRequestOperation *loadOperation = [[MVMCoreLoadRequestOperation alloc] initWithRequestParameters:requestParameters dataForPage:dataForPage delegateObject:delegateObject backgroundLoad:NO]; + loadOperation.identifier = requestParameters.identifier; [self.blockingLoadQueue addOperation:loadOperation]; return loadOperation; } @@ -396,6 +397,7 @@ - (MVMCoreLoadRequestOperation *)loadBackgroundRequest:(nonnull MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegateObject:(nullable DelegateObject *)delegateObject { MVMCoreLoadRequestOperation *loadOperation = [[MVMCoreLoadRequestOperation alloc] initWithRequestParameters:requestParameters dataForPage:dataForPage delegateObject:delegateObject backgroundLoad:YES]; + loadOperation.identifier = requestParameters.identifier; [self.backgroundLoadQueue addOperation:loadOperation]; return loadOperation; } diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m index ffcf1a5..931c967 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m @@ -48,7 +48,6 @@ self.dataForPage = dataForPage; self.delegateObject = delegateObject; self.backgroundLoad = backgroundLoad; - self.identifier = [NSUUID UUID].UUIDString; } return self; }