1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 14:11:59 +01:00

hotfix for auto reconnect

This commit is contained in:
NoobishSVK
2024-02-17 18:20:01 +01:00
parent 7d9abfd740
commit 3dd0977ac1

View File

@@ -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...");