Skip to content

Commit

Permalink
fix poll rate
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Nov 1, 2023
1 parent d4877c4 commit 3b619ff
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,13 @@ async function _batchedQueryAssets(
});
}

setTimeout(doNextFetch, Math.min(pollRate, 5000));
setTimeout(
() => {
doNextFetch(pollRate);
},
// If the poll rate is faster than 5 seconds lets use that instead
Math.min(pollRate, 5000),
);
}
}

Expand Down

0 comments on commit 3b619ff

Please sign in to comment.