Skip to content
Permalink
Browse files

Do not assert in Discord::Shutdown

Discord::Shutdown runs on app exit unconditionally,
and thus it's valid to try to call it even when Discord RPC
is not running.
  • Loading branch information
CookiePLMonster committed Nov 18, 2019
1 parent a8d2e51 commit c754da6491e90b5d736dea1e57fac03dfd86fdd1
Showing with 4 additions and 3 deletions.
  1. +4 −3 UI/DiscordIntegration.cpp
@@ -64,11 +64,12 @@ void Discord::Init() {
}

void Discord::Shutdown() {
assert(initialized_);
if (initialized_) {
#ifdef ENABLE_DISCORD
Discord_Shutdown();
Discord_Shutdown();
#endif
initialized_ = false;
initialized_ = false;
}
}

void Discord::Update() {

0 comments on commit c754da6

Please sign in to comment.
You can’t perform that action at this time.