Giter Club home page Giter Club logo

Comments (3)

ShayBox avatar ShayBox commented on May 31, 2024 1

My reason for the timeout is that Discord might not be open, have RPC disabled, use a web browser, custom client, etc, and I need None in those cases.

In my testing the process has to be stopped for long enough between restarts for RPC to disconnect, if it starts again too quickly the client will connect again after some time, but it won't re-emit ready, and I don't need it for anything but ready.

from discord-presence.

jewlexx avatar jewlexx commented on May 31, 2024

Hey, looking into this now, I can recreate the issue locally, but for some reason, the blocking example works fine.

One thing I will point out is that it is generally better to use client.block_until_event instead of the thread sleeping unless you have a specific reason for using a hardcoded time.

That function doesn't timeout because Discord has somewhat harsh rate limits, and the intended behaviour is to just wait until those are refreshed.

from discord-presence.

jewlexx avatar jewlexx commented on May 31, 2024

I've found a fix and it'll be published ASAP.

Thanks for the bug report

from discord-presence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.