Skip to content

Commit

Permalink
set Connection->onDebug = nullptr in Discord_Shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
p0358 committed Nov 10, 2023
1 parent a8a5c59 commit 1bd5a45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/discord_rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ extern "C" DISCORD_EXPORT void Discord_Shutdown(void)
}
Connection->onConnect = nullptr;
Connection->onDisconnect = nullptr;
Connection->onDebug = nullptr;
Handlers = {};
QueuedPresence.length = 0;
UpdatePresence.exchange(false);
Expand Down

0 comments on commit 1bd5a45

Please sign in to comment.