Make Realm::is_closed() work on read-only instances

This commit is contained in:
Scott Kyle 2016-05-31 11:27:39 -07:00
parent 7bb8a04359
commit 385fe97861
1 changed files with 1 additions and 1 deletions

View File

@ -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();