mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-25 08:28:23 +01:00
activate break to mqtt listen loop on cancel -> prevent sigkill on stop or restart service
This commit is contained in:
parent
d6c2e465ac
commit
2eece208eb
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class SatelliteController:
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
# Cancel
|
# Cancel
|
||||||
self.logger.warning("MQTT Listening Cancelled")
|
self.logger.warning("MQTT Listening Cancelled")
|
||||||
#break
|
break
|
||||||
except MqttError as e:
|
except MqttError as e:
|
||||||
self.logger.error("MQTT Exception: {}".format(e))
|
self.logger.error("MQTT Exception: {}".format(e))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue