Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ganlnyn0000 opened this issue Oct 11, 2024 · 1 comment
Open

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

ganlnyn0000 opened this issue Oct 11, 2024 · 1 comment
Assignees

Comments

@ganlnyn0000
Copy link

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

@int3debug
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants