diff --git a/React/Inspector/RCTInspectorPackagerConnection.m b/React/Inspector/RCTInspectorPackagerConnection.m index 5d0ed99ab46..d3d97d0eaf6 100644 --- a/React/Inspector/RCTInspectorPackagerConnection.m +++ b/React/Inspector/RCTInspectorPackagerConnection.m @@ -201,7 +201,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init) [self abort:@"Websocket exception" withCause:error]; } - if (!_closed) { + if (!_closed && [error code] != ECONNREFUSED) { [self reconnect]; } }