mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-18 17:55:24 -04:00
Delayed mcrec indexing by 5 seconds.
This commit is contained in:
parent
e9f5392c61
commit
6a37d04b55
@ -41,7 +41,8 @@ module.exports.processMessage = function(message) {
|
|||||||
}
|
}
|
||||||
case 'indexMcRec': {
|
case 'indexMcRec': {
|
||||||
//console.log('indexMcRec', message.data);
|
//console.log('indexMcRec', message.data);
|
||||||
require(require('path').join(__dirname, 'mcrec.js')).indexFile(message.data);
|
// Hold 5 seconds before starting to index
|
||||||
|
setTimeout(function () { require(require('path').join(__dirname, 'mcrec.js')).indexFile(message.data); }, 5000);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user