mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 14:54:33 +00:00
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.
|
||||
void close();
|
||||
|
||||
bool is_closed() { return m_shared_group == nullptr; }
|
||||
bool is_closed() { return !m_read_only_group && !m_shared_group; }
|
||||
|
||||
~Realm();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user