mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Bugfix: only execute direct callback of register node register when connected to STOMP server
This commit is contained in:
parent
8e9169c123
commit
f24d885214
@ -148,7 +148,7 @@ module.exports = function(RED) {
|
|||||||
node.connectedCallbacks.shift().call();
|
node.connectedCallbacks.shift().call();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else if (node.connected) {
|
||||||
// Execute callback directly as the connection to the STOMP server has already been made
|
// Execute callback directly as the connection to the STOMP server has already been made
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user