mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Improved AMT ACM activation using MeshAgent.
This commit is contained in:
parent
dea0d96add
commit
c9757d904c
4 changed files with 23 additions and 40 deletions
|
@ -58,11 +58,11 @@ function AmtManager(agent, db, isdebug) {
|
|||
var rebindToMeiRetrys = 0;
|
||||
obj.reset = function () {
|
||||
++rebindToMeiRetrys;
|
||||
amtMei = null, amtMeiState = 0, amtLms = null, amtLmsState = 0, obj.state = 0, obj.lmsstate = 0;
|
||||
obj.amtMei = null, amtMei = null, amtMeiState = 0, amtLms = null, amtLmsState = 0, obj.state = 0, obj.lmsstate = 0;
|
||||
//debug('Binding to MEI');
|
||||
try {
|
||||
var amtMeiLib = require('amt-mei');
|
||||
amtMei = new amtMeiLib();
|
||||
obj.amtMei = amtMei = new amtMeiLib();
|
||||
amtMei.on('error', function (e) { debug('MEI error'); amtMei = null; amtMeiState = -1; obj.state = -1; if (obj.onStateChange != null) { obj.onStateChange(amtMeiState); } });
|
||||
amtMei.getVersion(function (result) {
|
||||
if (result == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue