From f24d8852146494b46aac7eae70eeb0470506a5c2 Mon Sep 17 00:00:00 2001 From: Olivier Verhaegen <56387556+OlivierVerhaegen@users.noreply.github.com> Date: Fri, 30 Jun 2023 10:28:09 +0200 Subject: [PATCH] Bugfix: only execute direct callback of register node register when connected to STOMP server --- io/stomp/18-stomp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/stomp/18-stomp.js b/io/stomp/18-stomp.js index 698aab37..97a2ec22 100644 --- a/io/stomp/18-stomp.js +++ b/io/stomp/18-stomp.js @@ -148,7 +148,7 @@ module.exports = function(RED) { node.connectedCallbacks.shift().call(); } }); - } else { + } else if (node.connected) { // Execute callback directly as the connection to the STOMP server has already been made callback(); }