Bugfix for shared state

This commit is contained in:
Olivier Verhaegen
2023-04-12 16:32:43 +02:00
committed by GitHub
parent 5ad99c5463
commit b84508b52b

View File

@@ -14,10 +14,10 @@ module.exports = function(RED) {
this.reconnectretries = n.reconnectretries || 999999; this.reconnectretries = n.reconnectretries || 999999;
this.reconnectdelay = (n.reconnectdelay || 15) * 1000; this.reconnectdelay = (n.reconnectdelay || 15) * 1000;
this.name = n.name; this.name = n.name;
this.clientConnection = n.clientConnection;
this.connected = n.connected;
this.username = this.credentials.user; this.username = this.credentials.user;
this.password = this.credentials.password; this.password = this.credentials.password;
this.clientConnection = null;
this.connected = false;
} }
RED.nodes.registerType("stomp-server",StompServerNode,{ RED.nodes.registerType("stomp-server",StompServerNode,{
credentials: { credentials: {