Skip to content

Commit 3657eb6

Browse files
committed
fix incorrectly reporting the SSL exception when falling back to non-secure connections.
1 parent 9ebfc7f commit 3657eb6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77

88
archivesBaseName = "Archipelago.MultiClient.Java"
99
group = 'gg.archipelago.APClient'
10-
version = '1.6'
10+
version = '1.7'
1111

1212
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
1313

src/main/java/gg/archipelago/APClient/APWebSocket.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.java_websocket.client.WebSocketClient;
1717
import org.java_websocket.handshake.ServerHandshake;
1818

19+
import javax.net.ssl.SSLException;
1920
import java.net.URI;
2021
import java.net.URISyntaxException;
2122
import java.util.*;
@@ -277,6 +278,7 @@ public void run() {
277278

278279
@Override
279280
public void onError(Exception ex) {
281+
if(ex instanceof SSLException) return;
280282
apClient.onError(ex);
281283
LOGGER.log(Level.WARNING, "Error in websocket connection");
282284
ex.printStackTrace();

0 commit comments

Comments
 (0)