* Fixes #3403

* Fix Typo

V is actually a set so we can clear it.

* Fix bug, use self.assertFalse
This commit is contained in:
Brian Kelley
2020-09-10 02:11:47 -04:00
committed by greg landrum
parent 912b522096
commit 44f285f2cf
2 changed files with 33 additions and 14 deletions

View File

@@ -455,12 +455,14 @@ std::vector<MatchVectType> SubstructMatch(
}
}
#ifdef RDK_THREADSAFE_SSS
if (params.recursionPossible) {
BOOST_FOREACH (RecursiveStructureQuery *v, locked)
BOOST_FOREACH (RecursiveStructureQuery *v, locked) {
v->clear();
#ifdef RDK_THREADSAFE_SSS
v->d_mutex.unlock();
}
#endif
}
}
return matches;
}