1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-27 06:23:53 +01:00

bugfix for connection loop

This commit is contained in:
NoobishSVK
2024-03-21 15:40:40 +01:00
parent a06a9e8894
commit d2c84ce0b1
2 changed files with 2 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ function connectToXdrd() {
client.connect(xdrd.xdrdPort, xdrd.xdrdIp, () => { client.connect(xdrd.xdrdPort, xdrd.xdrdIp, () => {
logInfo('Connection to xdrd established successfully.'); logInfo('Connection to xdrd established successfully.');
const authFlags = { let authFlags = {
authMsg: false, authMsg: false,
firstClient: false, firstClient: false,
receivedPassword: false receivedPassword: false
@@ -167,7 +167,7 @@ function connectToXdrd() {
client.on('data', (data) => { client.on('data', (data) => {
helpers.resolveDataBuffer(data, wss); helpers.resolveDataBuffer(data, wss);
authDataHandler(data); //authDataHandler(data);
}); });
}); });
} }

View File

@@ -129,7 +129,6 @@ function submitData() {
}); });
} }
function fetchData() { function fetchData() {
// Make a GET request to retrieve the data.json file // Make a GET request to retrieve the data.json file
fetch("./getData") fetch("./getData")