1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed Win7 crash, Local AMT scanner

This commit is contained in:
Ylian Saint-Hilaire 2018-07-27 13:53:50 -07:00
parent d8a955629b
commit 6d8a93ad5a
7 changed files with 3 additions and 4 deletions

View file

@ -110,8 +110,7 @@ module.exports.CreateAmtScanner = function (parent) {
// Look for all AMT computers that may be locally reachable and poll their presence
obj.performScan = function () {
//console.log('performScan');
if (obj.action == false) { return false; }
if (obj.active == false) { return false; }
obj.parent.db.getLocalAmtNodes(10, function (err, docs) { // TODO: handler more than 10 computer scan at the same time. DNS resolved may need to be a seperate module.
for (var i in obj.scanTable) { obj.scanTable[i].present = false; }
if (err == null && docs.length > 0) {