magicalpanda/MagicalRecord

Is condition of asset inside MR_resetDefaultContext correct?

Igor-Palaguta opened this issue · 0 comments

Hello,
After migration from old MR version to new have crash inside MR_resetDefaultContext.
This assert confuses a little as assert requires NSConfinementConcurrencyType == [defaultContext concurrencyType] but in comment Do not call this method on a confinement context. we can see that it should be !=

What is wrong? Condition or comment?

    NSAssert(NSConfinementConcurrencyType == [defaultContext concurrencyType], @"Do not call this method on a confinement context.");

https://github.com/magicalpanda/MagicalRecord/blob/master/MagicalRecord/Categories/NSManagedObjectContext/NSManagedObjectContext%2BMagicalRecord.m#L175

Thanks!