mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 06:05:53 -05: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': {
|
||||
//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;
|
||||
}
|
||||
default: {
|
||||
|
Loading…
Reference in New Issue
Block a user