From 30f6e43d3ff2baad243d35f93722e4b1e6e958f0 Mon Sep 17 00:00:00 2001 From: Vincent Voyer Date: Sun, 14 May 2017 22:17:23 +0200 Subject: [PATCH] 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 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index dad519c5e..43fc2e9d8 100644 --- a/index.js +++ b/index.js @@ -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,