From d50113e2a9bfdb8acf3d9754aeaa644254c442d2 Mon Sep 17 00:00:00 2001 From: ChrisHanuta Date: Mon, 20 Jul 2020 14:42:30 +0200 Subject: [PATCH] **Fixes** - some trouble on restart after data error --- CHANGELOG.md | 1 + ads-connection.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42f8f2f..dc1a42a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ **Fixes** - some trouble on data error and end the socket +- some trouble on restart after data error ### 1.1.23: Maintenance Release diff --git a/ads-connection.js b/ads-connection.js index fca7c2b..665b824 100644 --- a/ads-connection.js +++ b/ads-connection.js @@ -123,8 +123,7 @@ module.exports = function (RED) { if (node.system.connectState == adsHelpers.connectState.CONNECTING) { internalSetConnectState(adsHelpers.connectState.ERROR) } - removeClient() - startTimer(20000) + internalRestart(connect) } } )