Skip to content

Commit

Permalink
Delayed mcrec indexing by 5 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylianst committed Jun 22, 2021
1 parent e9f5392 commit 6a37d04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meshaccelerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 6a37d04

Please sign in to comment.