fix: mqtt memory leak #63

This commit is contained in:
leukipp
2025-08-31 16:09:39 +02:00
parent f4ca7bc412
commit bf77d9b2a0
+2 -2
View File
@@ -57,7 +57,7 @@ const init = async () => {
// Client connected
INTEGRATION.client
.on("connect", () => {
.once("connect", () => {
console.log(`MQTT Connected: ${url.toString()}\n`);
// Init client controls
@@ -89,7 +89,7 @@ const init = async () => {
INTEGRATION.initialized = true;
})
.on("error", (error) => {
console.error("MQTT:", error);
console.error("MQTT", error.message);
});
// Update sensor states from events