Revert PR7009

This commit is contained in:
Feng Chen 2021-10-26 12:43:27 +08:00
parent a8b0104923
commit 052017e189
2 changed files with 5 additions and 15 deletions

View file

@ -174,8 +174,8 @@ struct KernelCore::Impl {
{
std::lock_guard lk(registered_in_use_objects_lock);
if (registered_in_use_objects.size()) {
for (auto thread : registered_in_use_objects) {
thread->Close();
for (auto& object : registered_in_use_objects) {
object->Close();
}
registered_in_use_objects.clear();
}