Fixed stack overflow error!

This commit is contained in:
kohlerpop1
2024-01-14 20:46:58 -05:00
committed by Jacek W
parent cf9b882391
commit 12cf9e641b
2 changed files with 1 additions and 2 deletions

View File

@@ -50,7 +50,6 @@ public class TikTokLive {
return requests().fetchLiveUserData(hostName).isLiveOnline(); return requests().fetchLiveUserData(hostName).isLiveOnline();
} }
/** /**
* *
* @param hostName profile name of Tiktok user could be found in profile link * @param hostName profile name of Tiktok user could be found in profile link

View File

@@ -162,8 +162,8 @@ public class TikTokLiveClient implements LiveClient {
if (liveRoomInfo.hasConnectionState(ConnectionState.DISCONNECTED)) { if (liveRoomInfo.hasConnectionState(ConnectionState.DISCONNECTED)) {
return; return;
} }
webSocketClient.stop();
setState(ConnectionState.DISCONNECTED); setState(ConnectionState.DISCONNECTED);
webSocketClient.stop();
} }
private void setState(ConnectionState connectionState) { private void setState(ConnectionState connectionState) {