Delayed mcrec indexing by 5 seconds.

This commit is contained in:
Ylian Saint-Hilaire 2021-06-22 08:29:46 -07:00
parent e9f5392c61
commit 6a37d04b55
1 changed files with 2 additions and 1 deletions

View File

@ -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: {