TooTallNate/Java-WebSocket — pull request #119 by stiletto (2012-09-19 18:11:19+00:00)
Title: Hang on WebSocketClient.close()

I tried to use Java-WebSocket in my Android application, but its background thread hangs with high CPU usage when I call WebSocketClient.close().
After some investigation i found that it hangs because close() sends thread interrupt, but that doesn't lead to closing of channel so IO loop continues to run forever.
I don't know if this is a proper fix, but worked for me.