mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 19:11:51 +00:00
Fixed code login issue (#4458)
This commit is contained in:
parent
fc2beda196
commit
0add5f8c7c
1 changed files with 1 additions and 2 deletions
|
@ -2214,7 +2214,6 @@ module.exports.CreateAmtManager = function (parent) {
|
||||||
dev.amtstack.BatchEnum('', query, attemptSettingsSyncResponse);
|
dev.amtstack.BatchEnum('', query, attemptSettingsSyncResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function attemptSettingsSyncResponse(stack, name, responses, status) {
|
function attemptSettingsSyncResponse(stack, name, responses, status) {
|
||||||
const dev = stack.dev;
|
const dev = stack.dev;
|
||||||
if (isAmtDeviceValid(dev) == false) return; // Device no longer exists, ignore this request.
|
if (isAmtDeviceValid(dev) == false) return; // Device no longer exists, ignore this request.
|
||||||
|
@ -2269,7 +2268,7 @@ module.exports.CreateAmtManager = function (parent) {
|
||||||
|
|
||||||
// Check KVM state
|
// Check KVM state
|
||||||
if ((dev.aquired.majorver != null) && (dev.aquired.majorver > 5) && (responses['CIM_KVMRedirectionSAP'] != null)) {
|
if ((dev.aquired.majorver != null) && (dev.aquired.majorver > 5) && (responses['CIM_KVMRedirectionSAP'] != null)) {
|
||||||
var kvm = (((responses['CIM_KVMRedirectionSAP'].response['EnabledState'] == 6) && (responses['CIM_KVMRedirectionSAP'].response['RequestedState'] == 2)) || (responses['CIM_KVMRedirectionSAP'].response['EnabledState'] == 2) || (responses['CIM_KVMRedirectionSAP'].response['EnabledState'] == 6));
|
const kvm = ((responses['CIM_KVMRedirectionSAP'].response['EnabledState'] == 2) || (responses['CIM_KVMRedirectionSAP'].response['EnabledState'] == 6));
|
||||||
if (kvm == false) {
|
if (kvm == false) {
|
||||||
// Enable KVM
|
// Enable KVM
|
||||||
dev.taskCount++;
|
dev.taskCount++;
|
||||||
|
|
Loading…
Reference in a new issue