diff --git a/machine/index.js b/machine/index.js index 700e3c1158c7b8c57c006f3423bfc285c796448e..ef8d4bcba66aae126f8c3650261ba555b0fceb8e 100644 --- a/machine/index.js +++ b/machine/index.js @@ -117,9 +117,8 @@ function updateTimeStamp(ackMachineNumber) { } function updateStatuses() { - setTimeout(1000) Object.keys(connections).forEach(connection => { - if (Date.now() - connections[connection].timestamp >= (2 * 10000)) { + if (Date.now() - connections[connection].timestamp >= (2 * 1000)) { connections[connection].status = "dead" const message = Buffer.from(`dead ${connection}`);