mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Fix misplaced reconnect error message
This commit is contained in:
parent
5ef67de581
commit
61963bb74a
@ -230,14 +230,14 @@ module.exports = function(RED) {
|
||||
node.client.on("error", function(err) {
|
||||
node.error(err);
|
||||
if (err.reconnectionFailed) {
|
||||
setStatusError(node, true);
|
||||
setStatusError(node, true, "Reconnection failed: exceeded number of reconnection attempts");
|
||||
}
|
||||
});
|
||||
|
||||
node.client.connect();
|
||||
} catch (err) {
|
||||
node.error(err);
|
||||
setStatusError(node, true, "Reconnection failed: exceeded number of reconnection attempts");
|
||||
setStatusError(node, true);
|
||||
}
|
||||
} else {
|
||||
node.log("Not connecting to STOMP server, already connected");
|
||||
|
Loading…
x
Reference in New Issue
Block a user