From 82899fca6837f88e40a8504df2baee95d920d9e3 Mon Sep 17 00:00:00 2001 From: Marin Todorov Date: Mon, 13 Jun 2016 20:00:28 +0200 Subject: [PATCH] * recreate the realm each time --- Pod/Classes/RealmObserver.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Pod/Classes/RealmObserver.swift b/Pod/Classes/RealmObserver.swift index 2f1e150..f53456d 100644 --- a/Pod/Classes/RealmObserver.swift +++ b/Pod/Classes/RealmObserver.swift @@ -38,7 +38,9 @@ class RealmObserver: ObserverType { case .Next(let element): //this will "cache" the realm on this thread, until completed/errored if let configuration = configuration where realm == nil { - realm = try! Realm(configuration: configuration) + let realm = try! Realm(configuration: configuration) + binding(realm, element) + return; } guard let realm = realm else {