Skip to content

Commit e1061ae

Browse files
committed
Update WebSocketClient.java
Rework after review
1 parent 2f56b70 commit e1061ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ public void run() {
485485

486486
// if the socket is set by others we don't apply any TLS wrapper
487487
if (upgradeSocketToSSLSocket && "wss".equals(uri.getScheme())) {
488-
SSLSocketFactory factory = null;
488+
SSLSocketFactory factory;
489489
// Prioritise the provided socketfactory
490490
// Helps when using web debuggers like Fiddler Classic
491491
if (socketFactory != null && (socketFactory instanceof SSLSocketFactory)) {

0 commit comments

Comments
 (0)