Update mqtt.js

Oops, put the code in the wrong file!
This commit is contained in:
id628 authored and GitHub committed 2023-07-15 19:04:32 -04:00
1 parent c8e6e6fa0d
commit a04ac40061
1 file changed
-10
-10
View File
@@ -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);
});