Skip to content
Snippets Groups Projects
Commit c354f34d authored by Deep Chatterjee's avatar Deep Chatterjee
Browse files

stop igwn alert client only if it is running; fixes #488

parent 70e573de
No related branches found
No related tags found
1 merge request!1000stop igwn alert client only if it is running; fixes #488
......@@ -106,8 +106,9 @@ class Receiver(IGWNAlertBootStep):
def stop(self, consumer):
super().stop(consumer)
self._client.running = False
self._client.stream_obj._consumer.stop()
if self._client.running:
self._client.running = False
self._client.stream_obj._consumer.stop()
self.thread.join()
def info(self, consumer):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment