From c5b5d350f206d59981cee70ef124a574d998d85b Mon Sep 17 00:00:00 2001 From: sparks-alec Date: Sun, 1 Oct 2023 01:42:58 -0400 Subject: [PATCH] Fix bug preventing heartbeats from happening d.port is undefined on all plugins now! So heartbeats basically never happened! Devices would then time out and attempt to reconnect, do that, and then redraw. --- src/device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.js b/src/device.js index c73fe7f..78e26d4 100644 --- a/src/device.js +++ b/src/device.js @@ -353,7 +353,7 @@ function heartbeat() { initDeviceConnection(deviceID); } else if (Date.now() - d.lastMessage > d.heartbeatTimeout) { infoUpdate(d, 'status', 'broken'); - } else if (d.port !== undefined && d.addresses.length > 0 && d.send) { + } else if ((d.remotePort !== undefined || d.defaultPort !== undefined) && d.addresses.length > 0 && d.send) { PLUGINS.all[d.type].heartbeat(d); } else { //