Skip to content

Commit

Permalink
fix(watch): add missing return
Browse files Browse the repository at this point in the history
Without this return, code will go to next change which could lead to race conditions in term of state set/get
  • Loading branch information
vvo committed May 14, 2017
1 parent 4460c2b commit 30f6e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function watch({ seq }) {
// we want to start over and get all info again
// we do this by exiting and letting Heroku start over
if (now - lastBootstrapped > c.timeToRedoBootstrap) {
stateManager
return stateManager
.set({
seq: 0,
bootstrapDone: false,
Expand Down

0 comments on commit 30f6e43

Please sign in to comment.