isaackogan/TikTokLive

await client.connect() not finishing when the live is end

Closed this issue · 2 comments

Describe the bug

async def check_loop():
# Run 24/7
while True:

    # Check if they're live
    while not await client.is_live():
        client.logger.info("Client is currently not live. Checking again in 60 seconds.")
        await asyncio.sleep(60)  # Spamming the endpoint will get you blocked

    # Connect once they become live
    client.logger.info("Requested client is live!")
    await client.connect()
    client.logger.info("client.connect end!")

Expected Behaviour

await client.connect() not finishing when the live is end
how can I finish await client.connect() when the live is end?thanks a lot!

Actual Behaviour

Package Version

6.1.6

Operating System

Windows

Anything Else

Already fixed here e94f8e5
Have to wait until pip packages are updated

Fixed, thanks @int3debug