mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix MQTT test fail due to birth sent before connection done
This commit is contained in:
parent
5c6b8e9e50
commit
31b17faa2a
@ -786,7 +786,9 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
// Send any birth message
|
// Send any birth message
|
||||||
if (node.birthMessage) {
|
if (node.birthMessage) {
|
||||||
node.publish(node.birthMessage);
|
setTimeout(() => {
|
||||||
|
node.publish(node.birthMessage);
|
||||||
|
}, 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
node._clientOn("reconnect", function() {
|
node._clientOn("reconnect", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user