From a04ac40061080193f1a430f1f9774db07b40b60e Mon Sep 17 00:00:00 2001 From: id628 Date: Sat, 15 Jul 2023 19:04:32 -0400 Subject: [PATCH] Update mqtt.js Oops, put the code in the wrong file! --- mqtt.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mqtt.js b/mqtt.js index 3fe456b..4ac77f3 100644 --- a/mqtt.js +++ b/mqtt.js @@ -578,13 +578,3 @@ exports.connect = function (options) { return mqtt; }; - -// Added by heroash88: -MQTT.on('disconnected', function() { - mqtt.connect(); -}); -MQTT.on('error', function() { - setTimeout(function (){ - mqtt.connect(); - }, 1000); -});