Skip to content

Commit 30f6e43

Browse files
authored
fix(watch): add missing return
Without this return, code will go to next change which could lead to race conditions in term of state set/get
1 parent 4460c2b commit 30f6e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function watch({ seq }) {
185185
// we want to start over and get all info again
186186
// we do this by exiting and letting Heroku start over
187187
if (now - lastBootstrapped > c.timeToRedoBootstrap) {
188-
stateManager
188+
return stateManager
189189
.set({
190190
seq: 0,
191191
bootstrapDone: false,

0 commit comments

Comments
 (0)