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();