Я получаю следующую ошибку, что я могу сделать?
2012-02-02 16: 12: 15.873 iPadAlertPrototype [16574: fb03] * Завершение
приложение из-за необработанного исключения «NSInternalInconsistencyException»,
причина: 'Попытка уменьшить счетчик нагрузки ниже нуля'
Первый класс
+(void)loadTaskGroups
{
[[RKObjectManager sharedManager].requestQueue
setConcurrentRequestsLimit:1];
[[RKObjectManager sharedManager].requestQueue setDelegate:self];
[[RKObjectManager sharedManager].requestQueue
setShowsNetworkActivityIndicatorWhenBusy:YES];
RKObjectLoader* loader = [[RKObjectManager sharedManager]
objectLoaderWithResourcePath:TASKGROUPURL delegate:self];
loader.backgroundPolicy = RKRequestBackgroundPolicyRequeue;
[loader sendSynchronously];
[loader setTimeoutInterval:60];
[loader setBackgroundPolicy:RKRequestBackgroundPolicyRequeue];
[[RKObjectManager sharedManager].requestQueue addRequest:loader];
[[RKObjectManager sharedManager].requestQueue start];
}
-(void)objectLoaderDidFinishLoading:(RKObjectLoader *)objectLoader
{
[TaskGroup loadTasks];
}
TaskGroup Class
+ (void)loadTasks
{
for (TaskGroup *taskGroup in [TaskGroup allObjects])
{
if ([[taskGroup class]isSubclassOfClass:[TaskGroup class]])
{
RKObjectLoader* loader = [[RKObjectManager sharedManager] objectLoaderWithResourcePath:TASKURL delegate:taskGroup];
[loader sendSynchronously];
[loader setTimeoutInterval:60];
[loader setBackgroundPolicy:RKRequestBackgroundPolicyRequeue];
[[RKObjectManager sharedManager].requestQueue addRequest:loader];
}
}
}