mirror of https://github.com/status-im/metro.git
Handle EEXIST error when starting the server
Reviewed By: @cpojer Differential Revision: D2426373
This commit is contained in:
parent
c308774bc1
commit
b8209572bb
|
@ -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' });
|
||||
|
|
Loading…
Reference in New Issue