Skip to content

Commit f36ae48

Browse files
committed
[MQTT] keep message fetch thread alive after connection failures
1 parent e1a4a65 commit f36ae48

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- **Breaking** The default refresh rate while the car is active has been changed to 30 seconds
1717
- **Breaking** The default refresh rate while the car is inactive has been changed to 24 hours
1818
- support configuring `refresh/mode`, `refresh/period/active`, `refresh/period/inActive` and `refresh/period/inActiveGrace` via MQTT
19+
20+
### Fixed
21+
- MQTT
22+
- keep message fetch thread alive after connection failures
23+
1924
### Dependencies
2025
- Bump `version.picocli` from 4.7.3 to 4.7.4 (#29)
2126
- Bump `maven-failsafe-plugin` from 3.1.0 to 3.1.2 (#30)
@@ -25,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2530
### Fixed
2631
- MQTT
2732
- calculate correct tyre pressure
33+
2834
### Dependencies
2935
- Bump `testcontainers-bom` from 1.18.1 to 1.18.3 (#27)
3036
- Bump `maven-source-plugin` from 3.2.1 to 3.3.0 (#23)

saic-java-mqtt-gateway/src/main/java/net/heberling/ismart/mqtt/MessageHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void run() {
8080
// logger.warn("No application data found!");
8181
}
8282
} catch (IOException | MqttException e) {
83-
throw new RuntimeException(e);
83+
LOGGER.error("Failed to retrieve messages. Will retry.", e);
8484
}
8585
}
8686

0 commit comments

Comments
 (0)