mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Fix for disconnecting log
This commit is contained in:
parent
b2aea4da29
commit
f40a4362d6
@ -252,6 +252,7 @@ module.exports = function(RED) {
|
||||
// Disconnection already in progress or not connected
|
||||
callback();
|
||||
} else {
|
||||
node.log('Disconnecting from STOMP server...');
|
||||
waitDisconnect(node.client, 2000).then(() => {
|
||||
node.log("Disconnected from STOMP server", {sessionId: node.sessionId, url: `${node.options.address}:${node.options.port}`, protocolVersion: node.options.protocolVersion})
|
||||
}).catch(() => {
|
||||
@ -338,7 +339,6 @@ module.exports = function(RED) {
|
||||
}
|
||||
|
||||
node.on("close", function(done) {
|
||||
node.log('Disconnecting...');
|
||||
node.disconnect(function() { done (); });
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user