Bugfix: only execute direct callback of register node register when connected to STOMP server

This commit is contained in:
Olivier Verhaegen 2023-06-30 10:28:09 +02:00 committed by GitHub
parent 8e9169c123
commit f24d885214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}