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.
This commit is contained in:
Silent 2019-11-18 21:46:51 +01:00
parent a8d2e513b9
commit c754da6491
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1

View File

@ -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() {