Skip to content

Commit 7b526aa

Browse files
author
Wojciech Marmurowicz
committed
fix(ignore): fixed Health stats check error when mqtt client is disabled
1 parent b7706f7 commit 7b526aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/mqtt.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export default class Mqtt {
3838
}
3939

4040
get stats() {
41+
if (!settings.get().mqtt.enabled) {
42+
return {connected: false, queued: 0};
43+
}
4144
return {
4245
connected: this.isConnected(),
4346
queued: this.client.queue.length,

0 commit comments

Comments
 (0)