feat: Cleans up some of the shutdown logic so that the MQTTClient is disconnected properly.

This commit is contained in:
2024-11-12 22:19:09 -05:00
parent fbbd65f7ae
commit efd9907b4a
4 changed files with 8 additions and 12 deletions

View File

@@ -40,7 +40,7 @@ struct Application {
$0.topicPublisher = .live(client: mqtt)
$0.mqttConnectionManager = .live(client: mqtt, logger: logger)
} operation: {
let mqttConnection = MQTTConnectionService(cleanSession: false, logger: logger)
let mqttConnection = MQTTConnectionService(logger: logger)
let sensors = SensorsService(sensors: .live, logger: logger)
var serviceGroupConfiguration = ServiceGroupConfiguration(