From fc794bbf3122fc4c7a69ab8b5a035f61b4999140 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Thu, 19 May 2016 12:22:07 -0700 Subject: [PATCH] pr fixes --- src/results.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/results.cpp b/src/results.cpp index 1daa32fc..f8682b10 100644 --- a/src/results.cpp +++ b/src/results.cpp @@ -92,6 +92,8 @@ Results::~Results() bool Results::is_valid() const { + if (m_realm) + m_realm->verify_thread(); if (m_table && !m_table->is_attached()) return false; if (m_mode == Mode::TableView && (!m_table_view.is_attached() || m_table_view.depends_on_deleted_object())) @@ -104,8 +106,6 @@ bool Results::is_valid() const void Results::validate_read() const { - if (m_realm) - m_realm->verify_thread(); if (!is_valid()) throw InvalidatedException(); }