* 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 GitHub
parent 9a864f4238
commit 728bb8defe
2 changed files with 18 additions and 3 deletions

View File

@@ -462,12 +462,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;
}