From b84508b52b51a0c0b150b8f5198a3d133eff532c Mon Sep 17 00:00:00 2001 From: Olivier Verhaegen <56387556+OlivierVerhaegen@users.noreply.github.com> Date: Wed, 12 Apr 2023 16:32:43 +0200 Subject: [PATCH] Bugfix for shared state --- io/stomp/18-stomp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io/stomp/18-stomp.js b/io/stomp/18-stomp.js index 5fbc9050..cce460cf 100644 --- a/io/stomp/18-stomp.js +++ b/io/stomp/18-stomp.js @@ -14,10 +14,10 @@ module.exports = function(RED) { this.reconnectretries = n.reconnectretries || 999999; this.reconnectdelay = (n.reconnectdelay || 15) * 1000; this.name = n.name; + this.clientConnection = n.clientConnection; + this.connected = n.connected; this.username = this.credentials.user; this.password = this.credentials.password; - this.clientConnection = null; - this.connected = false; } RED.nodes.registerType("stomp-server",StompServerNode,{ credentials: {