We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48cbb46 commit 2f56b70Copy full SHA for 2f56b70
1 file changed
src/main/java/org/java_websocket/client/WebSocketClient.java
@@ -488,8 +488,8 @@ public void run() {
488
SSLSocketFactory factory = null;
489
// Prioritise the provided socketfactory
490
// Helps when using web debuggers like Fiddler Classic
491
- if (socketFactory != null && (socketFactory instanceof SSLSocketFactory)) {
492
- factory = (SSLSocketFactory) socketFactory;
+ if (socketFactory != null && (socketFactory instanceof SSLSocketFactory)) {
+ factory = (SSLSocketFactory) socketFactory;
493
} else {
494
SSLContext sslContext = SSLContext.getInstance("TLSv1.2");
495
sslContext.init(null, null, null);
0 commit comments