No double logging of reconnecting event

This commit is contained in:
Olivier Verhaegen 2023-08-07 09:57:29 +02:00 committed by GitHub
parent 61963bb74a
commit 93a45225a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,11 +219,10 @@ module.exports = function(RED) {
});
node.client.on("reconnecting", function() {
node.warn("Reconnecting to STOMP server");
node.connecting = true;
node.connected = false;
node.log(`Reconnecting to STOMP server, url: ${node.options.address}:${node.options.port}, protocolVersion: ${node.options.protocolVersion}`);
node.warn(`Reconnecting to STOMP server, url: ${node.options.address}:${node.options.port}, protocolVersion: ${node.options.protocolVersion}`);
setStatusConnecting(node, true);
});