Bug fix while setting identifier
This commit is contained in:
parent
6372fcb56d
commit
e6ca9ec67d
@ -389,6 +389,7 @@
|
|||||||
return [self loadBackgroundRequest:requestParameters dataForPage:dataForPage delegateObject:delegateObject];
|
return [self loadBackgroundRequest:requestParameters dataForPage:dataForPage delegateObject:delegateObject];
|
||||||
} else {
|
} else {
|
||||||
MVMCoreLoadRequestOperation *loadOperation = [[MVMCoreLoadRequestOperation alloc] initWithRequestParameters:requestParameters dataForPage:dataForPage delegateObject:delegateObject backgroundLoad:NO];
|
MVMCoreLoadRequestOperation *loadOperation = [[MVMCoreLoadRequestOperation alloc] initWithRequestParameters:requestParameters dataForPage:dataForPage delegateObject:delegateObject backgroundLoad:NO];
|
||||||
|
loadOperation.identifier = requestParameters.identifier;
|
||||||
[self.blockingLoadQueue addOperation:loadOperation];
|
[self.blockingLoadQueue addOperation:loadOperation];
|
||||||
return loadOperation;
|
return loadOperation;
|
||||||
}
|
}
|
||||||
@ -396,6 +397,7 @@
|
|||||||
|
|
||||||
- (MVMCoreLoadRequestOperation *)loadBackgroundRequest:(nonnull MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegateObject:(nullable DelegateObject *)delegateObject {
|
- (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];
|
MVMCoreLoadRequestOperation *loadOperation = [[MVMCoreLoadRequestOperation alloc] initWithRequestParameters:requestParameters dataForPage:dataForPage delegateObject:delegateObject backgroundLoad:YES];
|
||||||
|
loadOperation.identifier = requestParameters.identifier;
|
||||||
[self.backgroundLoadQueue addOperation:loadOperation];
|
[self.backgroundLoadQueue addOperation:loadOperation];
|
||||||
return loadOperation;
|
return loadOperation;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,7 +48,6 @@
|
|||||||
self.dataForPage = dataForPage;
|
self.dataForPage = dataForPage;
|
||||||
self.delegateObject = delegateObject;
|
self.delegateObject = delegateObject;
|
||||||
self.backgroundLoad = backgroundLoad;
|
self.backgroundLoad = backgroundLoad;
|
||||||
self.identifier = [NSUUID UUID].UUIDString;
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user