fix assertion error

This commit is contained in:
John Rommel Estropia
2016-04-01 07:41:23 +09:00
parent 0c564add46
commit 88cac73b20
2 changed files with 4 additions and 2 deletions

View File

@@ -1033,6 +1033,7 @@ public final class ListMonitor<T: NSManagedObject> {
self.observerForWillChangePersistentStore = NotificationObserver(
notificationName: NSPersistentStoreCoordinatorStoresWillChangeNotification,
object: coordinator,
queue: NSOperationQueue.mainQueue(),
closure: { [weak self] (note) -> Void in
guard let `self` = self else {
@@ -1054,6 +1055,7 @@ public final class ListMonitor<T: NSManagedObject> {
self.observerForDidChangePersistentStore = NotificationObserver(
notificationName: NSPersistentStoreCoordinatorStoresDidChangeNotification,
object: coordinator,
queue: NSOperationQueue.mainQueue(),
closure: { [weak self] (note) -> Void in
guard let `self` = self else {