1
0
mirror of https://github.com/Ylianst/MeshCommander synced 2025-12-06 06:03:20 +00:00

Added 5 second KVM no auto-reconnect time.

This commit is contained in:
Ylian Saint-Hilaire
2022-01-13 16:17:42 -08:00
parent 4e7f459e29
commit 0836dae806
2 changed files with 5 additions and 2 deletions

View File

@@ -105,6 +105,7 @@ var CreateAmtRemoteDesktop = function (divid, scrolldiv) {
//var version = parseFloat(obj.acc.substring(4, 11)); //var version = parseFloat(obj.acc.substring(4, 11));
//console.log('KVersion: ' + version); //console.log('KVersion: ' + version);
obj.state = 1; obj.state = 1;
delete obj.parent.connectTime;
obj.send('RFB 003.008\n'); obj.send('RFB 003.008\n');
} }
else if ((obj.state == 1) && (obj.acc.byteLength >= 1)) { else if ((obj.state == 1) && (obj.acc.byteLength >= 1)) {
@@ -187,6 +188,7 @@ var CreateAmtRemoteDesktop = function (divid, scrolldiv) {
} }
obj.state = 4; obj.state = 4;
obj.parent.connectTime = Date.now();
if (obj.parent) { obj.parent.disconnectCode = 0; obj.parent.xxStateChange(3); } if (obj.parent) { obj.parent.disconnectCode = 0; obj.parent.xxStateChange(3); }
//obj.timer = setInterval(obj.xxOnTimer, 50); //obj.timer = setInterval(obj.xxOnTimer, 50);

View File

@@ -8554,8 +8554,9 @@
messagebox("Remote Desktop", "The device indicated that this type of connection of not supported."); messagebox("Remote Desktop", "The device indicated that this type of connection of not supported.");
} else if (desktop.disconnectCode == 50000) { // KVM-Disconnect } else if (desktop.disconnectCode == 50000) { // KVM-Disconnect
messagebox("Remote Desktop", "KVM disconnection, they may indicate that Intel AMT is unable to capture the display (Try RLE8 encoding), or unsupported GPU."); messagebox("Remote Desktop", "KVM disconnection, they may indicate that Intel AMT is unable to capture the display (Try RLE8 encoding), or unsupported GPU.");
} else if (desktop.disconnectCode == 50001) { // Intel AMT disconnect, try to connect again } else if (desktop.disconnectCode == 50001) { // Intel AMT disconnect, try to connect again if connection was more than 5 seconds long.
reconnect = true; reconnect = (desktop.connectTime != null) && ((desktop.connectTime + 5000) < Date.now());
console.log(desktop.disconnectCode, reconnect);
} }
break; break;
case 3: case 3: