We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a4241c commit 36daffcCopy full SHA for 36daffc
tools/runners/run-app.js
@@ -845,8 +845,14 @@ _.extend(AppRunner.prototype, {
845
// Notify the server that new client assets have been added to the
846
// build.
847
self._refreshing = true;
848
- appProcess.proc.send({ refresh: 'client' });
849
- self._refreshing = false;
+ // ChildProcess.prototype.send used to be synchronous, but is now
+ // asynchronous: https://github.com/nodejs/node/pull/2620
850
+ appProcess.proc.send({
851
+ refresh: 'client'
852
+ }, err => {
853
+ self._refreshing = false;
854
+ if (err) throw err;
855
+ });
856
857
// Establish a watcher on the new files.
858
setupClientWatcher();
0 commit comments