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();