mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
Fix crash on app termination
This commit is contained in:
@@ -88,8 +88,7 @@ static NSOperationQueue* mainQueue;
|
||||
if (_managedObjectModel != nil) {
|
||||
return _managedObjectModel;
|
||||
}
|
||||
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"Limelight_iOS" withExtension:@"momd"];
|
||||
_managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];
|
||||
_managedObjectModel = [NSManagedObjectModel mergedModelFromBundles:nil];
|
||||
return _managedObjectModel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user