mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-18 16:09:53 +00:00
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:
parent
a8d2e513b9
commit
c754da6491
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user