From 957ce4baca421f468f1f7306037232fef3a96e4f Mon Sep 17 00:00:00 2001 From: mike qin <1mike12@gmail.com> Date: Thu, 3 Nov 2016 18:09:08 -0700 Subject: [PATCH] increase MAX_WAIT_TIME Summary: increase the `MAX_WAIT_TIME` in FileWatcher since live reloading doesn't work for a lot of users on windows when developing android. There may be a better timeout than arbitrarily tripling it, I'm sure the original developer would be able to pick out a good one, but many of us have used this change to finally be able to use RN here on windows. fixes https://github.com/facebook/react-native/issues/8784 https://github.com/facebook/react-native/issues/7257 Closes https://github.com/facebook/react-native/pull/10690 Differential Revision: D4126110 Pulled By: mkonicek fbshipit-source-id: 9b6f188fe9d39bcdcc2b38392dfc644a518296b2 --- react-packager/src/node-haste/FileWatcher/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-packager/src/node-haste/FileWatcher/index.js b/react-packager/src/node-haste/FileWatcher/index.js index 0011adc3..782aed44 100644 --- a/react-packager/src/node-haste/FileWatcher/index.js +++ b/react-packager/src/node-haste/FileWatcher/index.js @@ -13,7 +13,7 @@ const denodeify = require('denodeify'); const sane = require('sane'); const execSync = require('child_process').execSync; -const MAX_WAIT_TIME = 120000; +const MAX_WAIT_TIME = 360000; const detectWatcherClass = () => { try {