activate break to mqtt listen loop on cancel -> prevent sigkill on stop or restart service

This commit is contained in:
avollkopf 2023-07-29 15:10:28 +02:00
parent d6c2e465ac
commit 2eece208eb

View file

@ -73,7 +73,7 @@ class SatelliteController:
except asyncio.CancelledError:
# Cancel
self.logger.warning("MQTT Listening Cancelled")
#break
break
except MqttError as e:
self.logger.error("MQTT Exception: {}".format(e))
except Exception as e: