Comments (7)
Fixed on canary and ptb, should get to stable soon.
from discord-rpc.
Should be fixed in stable now.
from discord-rpc.
Discord_Shutdown
clears out the callback pointers so none of them are called, shuts down the io thread, and closes the connection to Discord. The intent was for this to get called as your game shuts down, but it is safe to call whenever and re-init later if you want.
Right now the Playing <game>
status in Discord is driven by the process existing, not by the rpc connection. We're planning to add an explicit call to disable it, though.
from discord-rpc.
But the process doesn't exist in my scenario. For example, this was taken 5 minutes after starting send-presence.exe
, typing f
into the prompt, and closing it as soon as Discord: ready
was shown. As you can see, no send-presence
process exists, but the RP info is still displayed with the time left having counted down to 00:00.
from discord-rpc.
Looking at the Send-Presence example 'Discord_Shutdown' is called twice when you 'quit' using the q input option it causes this issue, I actually did this in my own code too accidentally and had the same issue where the rich presence status was stuck displayed even though the process had closed after the 'Discord_Shutdown' function was called (all be it was twice).
After removing the second un-needed execution of the 'Discord_Shutdown' function and testing it seemed to have fixed it in my code/senario... Could this be an issue then with executing 'Discord_Shutdown' more than once? If that's the case even though you shouldn't there probably should be something stopping this issue from even happening in the first place.
from discord-rpc.
Nah, Discord_Shutdown
should be safe to call a second time. That sounds like a bug on Discord's side.
from discord-rpc.
Good that this is fixed. I thought I was going crazy.
from discord-rpc.
Related Issues (20)
- Can I run rpc.connect() without Discord open? HOT 1
- NoClassDefFoundError when running minecraft client with discord-rpc HOT 3
- Websocket rpc closing with invalid origin even tho I don't include it.
- Cannot read properties of null (reading 'send')
- Can't display game invite option.
- Error: Could not connect HOT 1
- Having issues displaying large_image and large_text HOT 1
- Whats Wrong? | java.lang.NoClassDefFoundError: club/minnced/discord/rpc/DiscordRPC HOT 2
- discord-rpc compiling error
- Translating mod...
- Discord RPC not working in Debian based systems
- Compilation fails on UWP
- RPC not working; HOT 2
- [Feature Request] Dynamically set Application name ("Playing ...") HOT 12
- Discord SDK/RPC with C# - what to chose? HOT 3
- Please reverse the deprecation on this repo HOT 2
- Stopping integration after leaving play mode Unity
- Timestamps. End. HOT 3
- RPC doesnt send the user banner and other user info HOT 1
- F HOT 1
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-rpc.