mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
Clarify Priority calling order
Altered pre-connection logic to make reason settable Optionally cancel connection if recorder is used and fails to find record url!
This commit is contained in:
@@ -140,7 +140,7 @@ public class TikTokLiveClient implements LiveClient
|
||||
var preconnectEvent = new TikTokPreConnectionEvent(userData, liveData);
|
||||
tikTokEventHandler.publish(this, preconnectEvent);
|
||||
if (preconnectEvent.isCancelConnection())
|
||||
throw new TikTokLiveException("TikTokPreConnectionEvent cancelled connection!");
|
||||
throw new TikTokLivePreConnectionException(preconnectEvent);
|
||||
|
||||
if (clientSettings.isFetchGifts())
|
||||
giftManager.attachGiftsList(httpClient.fetchRoomGiftsData(userData.getRoomId()).getGifts());
|
||||
|
||||
Reference in New Issue
Block a user