Skip to content

Commit

Permalink
fix(mqtt): fix reconnection on broker with persistent connection
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerni10 committed Feb 14, 2025
1 parent 14cb029 commit c5d1e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/south/south-mqtt/south-mqtt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class SouthMQTT extends SouthConnector<SouthMQTTSettings, SouthMQ

override async disconnect(): Promise<void> {
if (this.client) {
this.client.end(true);
this.client.end(true, { cmd: 'disconnect', properties: { sessionExpiryInterval: 60 } });
this.logger.info(`Disconnected from ${this.connector.settings.url}...`);
this.client = null;
}
Expand Down

0 comments on commit c5d1e96

Please sign in to comment.