add running false on shutdown, fix dp typing

This commit is contained in:
Timothy Pogue
2022-09-12 14:21:39 -06:00
parent 12a3e90f78
commit bf2e5dee75
2 changed files with 6 additions and 9 deletions

View File

@@ -109,6 +109,7 @@ class ExternalMessageConsumer:
"""
if self._thread and self._loop:
logger.info("Stopping ExternalMessageConsumer")
self._running = False
if self._sub_tasks:
# Cancel sub tasks