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:
Alexander Blom 2016-07-14 07:32:08 -07:00 committed by Facebook Github Bot 1
parent 94efa8f58f
commit 55fb4f4a75
1 changed files with 0 additions and 4 deletions

View File

@ -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 {