Skip to content

Commit

Permalink
* recreate the realm each time
Browse files Browse the repository at this point in the history
  • Loading branch information
icanzilb committed Jun 13, 2016
1 parent b471e34 commit 82899fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Pod/Classes/RealmObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ class RealmObserver<E>: 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 {
Expand Down

0 comments on commit 82899fc

Please sign in to comment.