diff --git a/index.js b/index.js index 492f3c4..c6eae03 100644 --- a/index.js +++ b/index.js @@ -189,9 +189,6 @@ client.on('close', () => { }); client.on('error', (err) => { - setTimeout(function () { - connectToXdrd(); - }, 2000) switch (true) { case err.message.includes("ECONNRESET"): logError("Connection to xdrd lost. Reconnecting...");