Comments (3)
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.
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.
I've found a fix and it'll be published ASAP.
Thanks for the bug report
from discord-presence.
Related Issues (20)
- [FEATURE] Internal rate limiter HOT 1
- [BUG] Does not work with Ubuntu 22.04 Snap-based installs HOT 4
- Can i use with wasm32-wasi ? HOT 2
- `set_activity` runs before `start` despite being written after HOT 1
- [FEATURE] Button support in activities HOT 8
- [FEATURE] Removing event handlers HOT 6
- Refactoring HOT 2
- [FEATURE] Check ready status without event listener HOT 1
- Failed to connect: IoError(Custom { kind: TimedOut, error: "timed out while reading from pipe" }) HOT 1
- [FEATURE] Close/Exit/Quit HOT 2
- [BUG] Connection errors are not surfaced HOT 1
- [BUG] Events enum cannot be iterated on HOT 1
- Use the Discord GameSDK HOT 2
- [FEATURE] Better error types
- [FEATURE] Use async for long-running commands.
- [BUG] PartialUser isn't public
- [BUG] RPC continually attempts to connect while Discord is closed. HOT 2
- [FEATURE] Set activity type? "Listening to ..." HOT 1
- [BUG] "missing field `buttons`", line: 1, column: 107
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-presence.