mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-11-09 17:19:09 +00:00
Fixed issue with Discord RPC not updating presence during shutdown (#189)
This commit is contained in:
parent
5df1c5ae6d
commit
7c41a8ec19
|
@ -89,10 +89,11 @@ public:
|
|||
keepRunning.store(true);
|
||||
ioThread = std::thread([&]() {
|
||||
const std::chrono::duration<int64_t, std::milli> maxWait{500LL};
|
||||
while (keepRunning.load()) {
|
||||
Discord_UpdateConnection();
|
||||
while (keepRunning.load()) {
|
||||
std::unique_lock<std::mutex> lock(waitForIOMutex);
|
||||
waitForIOActivity.wait_for(lock, maxWait);
|
||||
Discord_UpdateConnection();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue