From e517ebab5c3cdc62b8e319ff5b207a5755d638a5 Mon Sep 17 00:00:00 2001 From: Adam Shone Date: Fri, 28 Dec 2012 11:37:47 +0000 Subject: [PATCH] Commenting out a hack which is intended to fix a problem with websocket connections on Android but is also preventing the connection from being established when running a core Java program. --- src/main/java/org/java_websocket/client/WebSocketClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/java_websocket/client/WebSocketClient.java b/src/main/java/org/java_websocket/client/WebSocketClient.java index fcfc36967..070fafea9 100644 --- a/src/main/java/org/java_websocket/client/WebSocketClient.java +++ b/src/main/java/org/java_websocket/client/WebSocketClient.java @@ -238,7 +238,8 @@ private final void interruptableRun() { // Hack for issue #140: // Android does simply return form select without closing the channel if address is not reachable(which seems to be a bug in the android nio proivder) // TODO provide a way to fix this problem which does not require this hack - throw new IOException( "Host is not reachable(Android Hack)" ); + // TODO work out why this is breaking the connection in a Java program + //throw new IOException( "Host is not reachable(Android Hack)" ); } while ( i.hasNext() ) { key = i.next();