Skip to content

Commit 906796d

Browse files
authored
Merge pull request #128 from jwdeveloper/develop-1.10.4
Fix throwing error bug when connecting using proxy!
2 parents a72d134 + 162092c commit 906796d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Client/src/main/java/io/github/jwdeveloper/tiktok/websocket/TikTokWebSocketClient.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,12 @@ public X509Certificate[] getAcceptedIssuers() {
110110
ProxyData proxyData = proxySettings.next();
111111
if (tryProxyConnection(proxySettings, proxyData)) {
112112
heartbeatTask.run(webSocketClient, clientSettings.getPingInterval());
113-
break;
113+
return;
114114
}
115115
if (proxySettings.isAutoDiscard())
116116
proxySettings.remove();
117117
}
118-
if (!isConnected())
119-
throw new TikTokLiveException("Failed to connect to the websocket");
118+
throw new TikTokLiveException("Failed to connect to the websocket");
120119
}
121120

122121
public boolean tryProxyConnection(ProxyClientSettings proxySettings, ProxyData proxyData) {

0 commit comments

Comments
 (0)