Don't close WebSocket if it fails during connect
Summary: This is causing log spew in all Android RN apps because we try to close a non-existing web socket. Reviewed By: foghina Differential Revision: D3548998 fbshipit-source-id: 27392915bdf456c88f44c3b394c5c9d2ea1bab54
This commit is contained in:
parent
94efa8f58f
commit
55fb4f4a75
|
@ -184,10 +184,6 @@ public class WebSocketModule extends ReactContextBaseJavaModule {
|
|||
if (client == null) {
|
||||
// WebSocket is already closed
|
||||
// Don't do anything, mirror the behaviour on web
|
||||
FLog.w(
|
||||
ReactConstants.TAG,
|
||||
"Cannot close WebSocket. Unknown WebSocket id " + id);
|
||||
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue