Fix check for the target results being invalid in ResultsNotifier::deliver()

m_target_results is no longer actually set to null when the notifier is
unregistered, so check the thing which is (i.e. m_realm).
This commit is contained in:
Thomas Goyne 2016-04-13 15:38:13 -07:00
parent 238e9e3b6b
commit e75ff49421
1 changed files with 3 additions and 3 deletions

View File

@ -173,10 +173,10 @@ bool ResultsNotifier::do_deliver(SharedGroup& sg)
{ {
auto lock = lock_target(); auto lock = lock_target();
// Target results being null here indicates that it was destroyed while we // Target realm being null here indicates that we were unregistered while we
// were in the process of advancing the Realm version and preparing for // were in the process of advancing the Realm version and preparing for
// delivery, i.e. it was destroyed from the "wrong" thread // delivery, i.e. the results was destroyed from the "wrong" thread
if (!m_target_results) { if (!get_realm()) {
return false; return false;
} }