mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
hotfix for auto reconnect
This commit is contained in:
@@ -189,9 +189,6 @@ client.on('close', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.on('error', (err) => {
|
client.on('error', (err) => {
|
||||||
setTimeout(function () {
|
|
||||||
connectToXdrd();
|
|
||||||
}, 2000)
|
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case err.message.includes("ECONNRESET"):
|
case err.message.includes("ECONNRESET"):
|
||||||
logError("Connection to xdrd lost. Reconnecting...");
|
logError("Connection to xdrd lost. Reconnecting...");
|
||||||
|
|||||||
Reference in New Issue
Block a user