Skip to content

Commit

Permalink
fix(startup): Make startup delay longer - still some crashes happening
Browse files Browse the repository at this point in the history
  • Loading branch information
symposion committed Feb 27, 2017
1 parent 77c39ae commit 964230c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/entry-point.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ roll20.on('ready', () => {
Migrator.migrateShapedConfig(myState, logger);
const character = roll20.createObj('character', { name: 'SHAPED_VERSION_TESTER' });
const campaignSize = roll20.findObjs({}).length;
const delay = Math.max(1000, Math.floor(campaignSize / 30));
const delay = Math.max(2000, Math.floor(campaignSize / 20));
logger.debug('Campaign size: $$$', campaignSize);
roll20.createAttrWithWorker(character.id, 'sheet_opened', 1, () => {
setTimeout(() => {
Expand Down

0 comments on commit 964230c

Please sign in to comment.