mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Fixed issue Discord RPC library not clearing presence during shutdown
This commit is contained in:
3
Externals/discord-rpc/src/discord_rpc.cpp
vendored
3
Externals/discord-rpc/src/discord_rpc.cpp
vendored
@ -89,10 +89,11 @@ public:
|
||||
keepRunning.store(true);
|
||||
ioThread = std::thread([&]() {
|
||||
const std::chrono::duration<int64_t, std::milli> maxWait{500LL};
|
||||
Discord_UpdateConnection();
|
||||
while (keepRunning.load()) {
|
||||
Discord_UpdateConnection();
|
||||
std::unique_lock<std::mutex> lock(waitForIOMutex);
|
||||
waitForIOActivity.wait_for(lock, maxWait);
|
||||
Discord_UpdateConnection();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
2
Externals/licenses.md
vendored
2
Externals/licenses.md
vendored
@ -8,6 +8,8 @@ Dolphin includes or links code of the following third-party software projects:
|
||||
[LGPLv2.1+](http://bochs.sourceforge.net/cgi-bin/lxr/source/COPYING)
|
||||
- [cubeb](https://github.com/kinetiknz/cubeb):
|
||||
[ISC](https://github.com/kinetiknz/cubeb/blob/master/LICENSE)
|
||||
- [Discord-RPC](https://github.com/discordapp/discord-rpc):
|
||||
[MIT](https://github.com/discordapp/discord-rpc/blob/master/LICENSE)
|
||||
- [ENet](http://enet.bespin.org/):
|
||||
[MIT](http://enet.bespin.org/License.html)
|
||||
- [GCEmu](http://sourceforge.net/projects/gcemu-project/):
|
||||
|
Reference in New Issue
Block a user