From ee3e79bef06e65be8ad610815139a2ab9756ae28 Mon Sep 17 00:00:00 2001 From: sparks-alec Date: Sun, 8 Jan 2023 23:24:04 -0500 Subject: [PATCH] remove alec's terrible old code --- src/device.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/device.js b/src/device.js index 14406cc..846145a 100644 --- a/src/device.js +++ b/src/device.js @@ -309,24 +309,6 @@ function heartbeat() { d.lastHeartbeat = Date.now(); } }); - - // for (let i in devices) { - // const device = devices[i]; - // if (Date.now() >= device.lastHeartbeat + device.heartbeatInterval) { - // if (device.status == 'broken') { - // initDeviceConnection(i); - // } else if (Date.now() - device.lastMessage > device.heartbeatTimeout) { - // infoUpdate(device, 'status', 'broken'); - // } else { - // if (device.port != undefined && device.addresses.length > 0) { - // PLUGINS.all[device.type].heartbeat(device); - // } else { - // // console.error("Invalid IP/Port on device "+device.name) - // } - // } - // device.lastHeartbeat = Date.now(); - // } - // } } setInterval(heartbeat, 100);