Skip to content
Snippets Groups Projects
Commit a5031583 authored by arshiam2's avatar arshiam2
Browse files

wip

parent 915a06b9
No related branches found
No related tags found
1 merge request!2WIP: Old 4
......@@ -117,8 +117,9 @@ function updateTimeStamp(ackMachineNumber) {
}
function updateStatuses() {
setTimeout(1000)
Object.keys(connections).forEach(connection => {
if (Date.now() - connections[connection].timestamp >= (2 * 1000)) {
if (Date.now() - connections[connection].timestamp >= (2 * 10000)) {
connections[connection].status = "dead"
const message = Buffer.from(`dead ${connection}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment