mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-24 10:00:35 -04:00
adding CodeRabbit suggestion plus disconnect()
This commit is contained in:
1 parent
af986aa540
commit
e3327d8718
1 file changed
+1
-1
@@ -65,6 +65,7 @@ def main():
|
||||
db.open()
|
||||
|
||||
mqtt_start(db)
|
||||
mqtt_client.disconnect()
|
||||
|
||||
plugin_objects.write_result_file()
|
||||
|
||||
@@ -431,7 +432,6 @@ def mqtt_start(db):
|
||||
global mqtt_client, mqtt_connected_to_broker
|
||||
|
||||
if not mqtt_connected_to_broker:
|
||||
mqtt_connected_to_broker = True
|
||||
mqtt_client = mqtt_create_client()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user