Skip to content

Commit

Permalink
add a 10s debounce on the version check to try and prevent the runaway
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscareycode committed Apr 23, 2019
1 parent a18ffc8 commit f7d08fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Base.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ class Base extends Component {
setInterval(() => {
// inside the interval we check again if the user disabled the check
if (this.state.versionCheckDays > 0) {
this.versionCheck();
// add a 10s debounce on the version check to try and prevent the runaway
_.debounce(this.versionCheck(), 10000);
}
}, intervalTime);
} else {
Expand Down

0 comments on commit f7d08fd

Please sign in to comment.