Merge pull request #60 from realm/al-latest-fixes

Latest fixes for react-native/android
This commit is contained in:
Ari Lazier 2016-03-22 17:19:57 -07:00
commit f41d137f71
2 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,7 @@
#include <future> #include <future>
namespace realm { namespace realm {
class ClientHistory; class Replication;
namespace _impl { namespace _impl {
class RealmCoordinator; class RealmCoordinator;
@ -38,7 +38,7 @@ private:
RealmCoordinator& m_parent; RealmCoordinator& m_parent;
// A shared group used to listen for changes // A shared group used to listen for changes
std::unique_ptr<ClientHistory> m_history; std::unique_ptr<Replication> m_history;
SharedGroup m_sg; SharedGroup m_sg;
// The listener thread // The listener thread

View File

@ -447,8 +447,6 @@ uint64_t Realm::get_schema_version(const realm::Realm::Config &config)
void Realm::close() void Realm::close()
{ {
invalidate();
if (m_coordinator) { if (m_coordinator) {
m_coordinator->unregister_realm(this); m_coordinator->unregister_realm(this);
} }