mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-07 23:03:38 +00:00
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.
This commit is contained in:
+1
-1
@@ -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 {
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user