We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 936adf8 + 89ee2d3 commit fa46ff7Copy full SHA for fa46ff7
src/net/tootallnate/websocket/WebSocketClient.java
@@ -218,7 +218,10 @@ public void run() {
218
}
219
} catch (IOException ex) {
220
onIOError(conn, ex);
221
- } catch (NoSuchAlgorithmException ex) {
+ } catch (Exception ex) {
222
+ // NullPointerException is the most common error that can happen here
223
+ // (e.g.when connection closes immediately)
224
+ // TODO: user should handle that kind of events my himself
225
ex.printStackTrace();
226
227
0 commit comments