From 972395a7c9a72d746bd9baead803e5caa4c071a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Bigio?= Date: Sat, 12 Mar 2016 17:32:10 -0800 Subject: [PATCH] Unbreak HMR listener Reviewed By: sam-swarr Differential Revision: D3042801 fb-gh-sync-id: 2f06f2efbdf3d04ce4db0cf847ebe76d05fb109f shipit-source-id: 2f06f2efbdf3d04ce4db0cf847ebe76d05fb109f --- local-cli/server/util/attachHMRServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/server/util/attachHMRServer.js b/local-cli/server/util/attachHMRServer.js index da3ecf759..3c6d630a4 100644 --- a/local-cli/server/util/attachHMRServer.js +++ b/local-cli/server/util/attachHMRServer.js @@ -292,7 +292,7 @@ function attachHMRServer({httpServer, path, packagerServer}) { () => { // do nothing, file was removed }, - ).finally(() => { + ).then(() => { client.ws.send(JSON.stringify({type: 'update-done'})); }); });