mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-16 12:39:32 +08:00
Don't reconnect inspector if connection refused (#22625)
Summary: (Together with a pr to react-devtools) Fixes https://github.com/facebook/react-native/issues/21030 [iOS] [Fixed] - Fix infinite retry loop of inspector Pull Request resolved: https://github.com/facebook/react-native/pull/22625 Differential Revision: D14169392 Pulled By: hramos fbshipit-source-id: 2e301fd9d458598b62399fc61a9859ad29928483
This commit is contained in:
committed by
Facebook Github Bot
parent
0cffdaae30
commit
d9489c4e9c
@@ -201,7 +201,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
[self abort:@"Websocket exception"
|
||||
withCause:error];
|
||||
}
|
||||
if (!_closed) {
|
||||
if (!_closed && [error code] != ECONNREFUSED) {
|
||||
[self reconnect];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user