Fix for OKH IllegalStateException.

// FREEBIE

Fixes #2501
pull/1/head
Moxie Marlinspike 10 years ago
parent 6280ef4ab8
commit 8a2caeef3d

@ -188,7 +188,13 @@ public class WebSocketConnection {
while (newSocket()) {
try {
Response response = webSocket.connect(Client.this);
Response response;
try {
response = webSocket.connect(Client.this);
} catch (IllegalStateException e) {
throw new IOException(e);
}
if (response.code() == 101) {
onConnected();

Loading…
Cancel
Save