Commit 1dd77bcf authored by 李纪文's avatar 李纪文

fix: 修改消息掉线重连

parent e1b888fa
Pipeline #83971 passed with stages
......@@ -316,7 +316,7 @@ class Notifier {
if (this.IsNeedReconnect) {
this.MQTTClient.connect(self.MQTTOptions);
this.MQTTtester = setInterval(function() {
if (self.MQTTClient.isConnected) {
if (self.MQTTClient.isConnected()) {
clearInterval(self.MQTTtester);
} else {
self.MQTTClient.connect(self.MQTTOptions);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment