Code lint fixes
This commit is contained in:
parent
20b64c9acb
commit
5af6a8c452
2 changed files with 6 additions and 9 deletions
|
|
@ -27,7 +27,7 @@ async function main() {
|
|||
);
|
||||
const client = new MqttClient(config.mqttBroker, config.mqttUsername, config.mqttPassword);
|
||||
|
||||
['SIGINT', 'SIGHUP', 'SIGTERM'].forEach(signal => {
|
||||
['SIGINT', 'SIGHUP', 'SIGTERM'].forEach((signal) => {
|
||||
process.on(signal, () => {
|
||||
client.disconnect(() => process.exit(0));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue