Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Nov 25, 2024
1 parent 9f63357 commit f765e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neon_mq_connector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def stop_consumers(self, names: tuple = (), allow_restart: bool = True):
names = list(self.consumers)
for name in names:
try:
if isinstance(self.consumers.get(name), SUPPORTED_THREADED_CONSUMERS):
if isinstance(self.consumers.get(name), SUPPORTED_THREADED_CONSUMERS) and self.consumers[name].is_alive():
self.consumers[name].join(timeout=self.__consumer_join_timeout__, allow_restart=allow_restart)
self.consumer_properties[name]['is_alive'] = self.consumers[name].is_consumer_alive
self.consumer_properties[name]['started'] = False
Expand Down

0 comments on commit f765e22

Please sign in to comment.