Merge pull request #60 from realm/al-latest-fixes
Latest fixes for react-native/android
This commit is contained in:
commit
f41d137f71
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue