Ensure stomp retconnect retry default

to close #478
This commit is contained in:
Dave Conway-Jones
2018-08-15 22:17:32 +01:00
parent d1eaec49c8
commit 85ddffb98f
2 changed files with 4 additions and 4 deletions

View File

@@ -10,8 +10,8 @@ module.exports = function(RED) {
this.port = n.port;
this.protocolversion = n.protocolversion;
this.vhost = n.vhost;
this.reconnectretries = n.reconnectretries;
this.reconnectdelay = n.reconnectdelay * 1000;
this.reconnectretries = n.reconnectretries || 999999;
this.reconnectdelay = (n.reconnectdelay || 15) * 1000;
this.name = n.name;
this.username = this.credentials.user;
this.password = this.credentials.password;