Clear presence data on shutdown
This commit is contained in:
parent
64e192b326
commit
d2eaaa8e41
@ -355,6 +355,8 @@ extern "C" DISCORD_EXPORT void Discord_Shutdown(void)
|
||||
Connection->onConnect = nullptr;
|
||||
Connection->onDisconnect = nullptr;
|
||||
Handlers = {};
|
||||
CurrentPresence.length = 0;
|
||||
QueuedPresence.length = 0;
|
||||
if (IoThread != nullptr) {
|
||||
IoThread->Stop();
|
||||
delete IoThread;
|
||||
|
Loading…
x
Reference in New Issue
Block a user