Merge "Fix major bug in child thread cleanup logic"

This commit is contained in:
Zuul 2021-10-14 19:27:51 +00:00 committed by Gerrit Code Review
commit 09064909ee
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class Activity(object):
"""Stops all threads spawn by this activity.
"""
for thread_name, thread in list(self._child_thread_map.items()):
if name is not None and thread_name is name:
if name is None or thread_name == name:
LOG.debug('%s: Stopping child thread %s',
self.name, thread_name)
thread.kill()