Skip to content

Commit 9a26894

Browse files
[autofix.ci] apply automated fixes
1 parent a4b0e6e commit 9a26894

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

server/monitor-types/mqtt.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,14 @@ class MqttMonitorType extends MonitorType {
295295
settle(() => reject(error));
296296
};
297297

298-
const timeoutID = setTimeout(() => {
299-
log.debug(this.name, "MQTT timeout triggered");
300-
// Keep the connection alive — just stop waiting for this check cycle
301-
settle(() => reject(new Error("Timeout, Message not received")));
302-
}, interval * 1000 * 0.8);
298+
const timeoutID = setTimeout(
299+
() => {
300+
log.debug(this.name, "MQTT timeout triggered");
301+
// Keep the connection alive — just stop waiting for this check cycle
302+
settle(() => reject(new Error("Timeout, Message not received")));
303+
},
304+
interval * 1000 * 0.8
305+
);
303306

304307
// Subscribe to this topic if not already subscribed on this connection.
305308
// Attach the message listener only after the subscribe callback fires so that

0 commit comments

Comments
 (0)