mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
reduced socket errors
This commit is contained in:
parent
8bdf3df810
commit
cd6ab4f62f
|
@ -58,7 +58,6 @@ daemon.on("error", function (err) {
|
||||||
daemonLog.error("daemon connection error");
|
daemonLog.error("daemon connection error");
|
||||||
daemonLog.info("Make sure the daemon is started.");
|
daemonLog.info("Make sure the daemon is started.");
|
||||||
daemonLog.info('Run "python daemon.py" in the tnc directory.');
|
daemonLog.info('Run "python daemon.py" in the tnc directory.');
|
||||||
daemonLog.debug(err);
|
|
||||||
|
|
||||||
daemonShowConnectStateError = 0;
|
daemonShowConnectStateError = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,10 +76,6 @@ client.on("connect", function (data) {
|
||||||
client.on("error", function (data) {
|
client.on("error", function (data) {
|
||||||
if (tncShowConnectStateError == 1) {
|
if (tncShowConnectStateError == 1) {
|
||||||
socketLog.error("TNC connection error");
|
socketLog.error("TNC connection error");
|
||||||
socketLog.info("TNC is started by the GUI process.");
|
|
||||||
socketLog.debug(data);
|
|
||||||
// setTimeout( function() { exports.connectTNC(tnc_host, tnc_port); }, 2000 );
|
|
||||||
|
|
||||||
tncShowConnectStateError = 0;
|
tncShowConnectStateError = 0;
|
||||||
}
|
}
|
||||||
setTimeout(connectTNC, 500);
|
setTimeout(connectTNC, 500);
|
||||||
|
|
Loading…
Reference in a new issue