From 4c797724d3278ae9df997dfa870f8f59c0294049 Mon Sep 17 00:00:00 2001 From: Lysinka Date: Tue, 24 Oct 2023 19:07:08 +0200 Subject: [PATCH] Update TikTokLiveClient.java --- .../java/io/github/jwdeveloper/tiktok/TikTokLiveClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/src/main/java/io/github/jwdeveloper/tiktok/TikTokLiveClient.java b/Client/src/main/java/io/github/jwdeveloper/tiktok/TikTokLiveClient.java index 2d0eea43..8547c038 100644 --- a/Client/src/main/java/io/github/jwdeveloper/tiktok/TikTokLiveClient.java +++ b/Client/src/main/java/io/github/jwdeveloper/tiktok/TikTokLiveClient.java @@ -112,7 +112,7 @@ public void connect() { } public void disconnect() { - if (!liveRoomInfo.hasConnectionState(ConnectionState.CONNECTED)) { + if (liveRoomInfo.hasConnectionState(ConnectionState.DISCONNECTED)) { return; } webSocketClient.stop();