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