Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3cfac35

Browse files
Amjad Masadfacebook-github-bot-7
Amjad Masad
authored and
facebook-github-bot-7
committed
Handle EEXIST error when starting the server
Reviewed By: @cpojer Differential Revision: D2426373
1 parent 3ee6522 commit 3cfac35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packager/react-packager/src/SocketInterface/SocketServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class SocketServer {
148148
process.send({ type: 'createdServer' });
149149
},
150150
error => {
151-
if (error.code === 'EADDRINUSE') {
151+
if (error.code === 'EADDRINUSE' || error.code === 'EEXIST') {
152152
// Server already listening, this may happen if multiple
153153
// clients where started in quick succussion (buck).
154154
process.send({ type: 'createdServer' });

0 commit comments

Comments
 (0)