From a1ceb9acf2666c429818edd0987a9d11a451743f Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Mon, 23 Nov 2020 07:51:34 +0100 Subject: [PATCH] TMSS-320: clear running flag so thread loops can exit --- LCS/Messaging/python/messaging/messagebus.py | 1 + 1 file changed, 1 insertion(+) diff --git a/LCS/Messaging/python/messaging/messagebus.py b/LCS/Messaging/python/messaging/messagebus.py index d445b6cd098..70f3f9b90c4 100644 --- a/LCS/Messaging/python/messaging/messagebus.py +++ b/LCS/Messaging/python/messaging/messagebus.py @@ -1456,6 +1456,7 @@ class BusListener: # check if the _listen_loop was started successfully logger.debug("waiting for thread %s to be running...", thread_name) if not (thread_started_event.wait(timeout=10) and thread.is_alive()): + self._running.clear() # clear running flag so thread loops can exit msg = "Could not fully start listener thread: %s" % (thread_name,) logger.error(msg) raise MessagingRuntimeError(msg) -- GitLab