Skip to content

Commit 5925606

Browse files
call onError for IOExceptions as this is where SSL issues will appear
users onError can ignore the exception on the based on the exception type
1 parent 05d2e2e commit 5925606

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/org/java_websocket/client/WebSocketClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ public void run() {
186186
}
187187
engine.eot();
188188
} catch ( IOException e ) {
189+
// we need this error as it hides SSL configuration issues
190+
onError( e );
189191
engine.eot();
190192
} catch ( RuntimeException e ) {
191193
// this catch case covers internal errors only and indicates a bug in this websocket implementation

0 commit comments

Comments
 (0)