Make Realm::is_closed() work on read-only instances
This commit is contained in:
parent
7bb8a04359
commit
385fe97861
|
@ -132,7 +132,7 @@ namespace realm {
|
||||||
// Realm after closing it will produce undefined behavior.
|
// Realm after closing it will produce undefined behavior.
|
||||||
void close();
|
void close();
|
||||||
|
|
||||||
bool is_closed() { return m_shared_group == nullptr; }
|
bool is_closed() { return !m_read_only_group && !m_shared_group; }
|
||||||
|
|
||||||
~Realm();
|
~Realm();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue