From 3cfac35fd8a3a4446c527fe7a9aceafd38d6ab0e Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Wed, 9 Sep 2015 16:06:13 -0700 Subject: [PATCH] Handle EEXIST error when starting the server Reviewed By: @cpojer Differential Revision: D2426373 --- packager/react-packager/src/SocketInterface/SocketServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/react-packager/src/SocketInterface/SocketServer.js b/packager/react-packager/src/SocketInterface/SocketServer.js index 888dcf78a..5778eba02 100644 --- a/packager/react-packager/src/SocketInterface/SocketServer.js +++ b/packager/react-packager/src/SocketInterface/SocketServer.js @@ -148,7 +148,7 @@ class SocketServer { process.send({ type: 'createdServer' }); }, error => { - if (error.code === 'EADDRINUSE') { + if (error.code === 'EADDRINUSE' || error.code === 'EEXIST') { // Server already listening, this may happen if multiple // clients where started in quick succussion (buck). process.send({ type: 'createdServer' });