Skip to content

Commit

Permalink
Merge pull request #155 from jbemmel/patch-2
Browse files Browse the repository at this point in the history
Fix major bug in child thread cleanup logic
  • Loading branch information
anarkiwi committed Sep 9, 2021
2 parents 65663d4 + ac849e3 commit 2e70346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ryu/services/protocols/bgp/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _stop_child_threads(self, name=None):
"""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()
Expand Down

0 comments on commit 2e70346

Please sign in to comment.