mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-06-06 14:44:59 -06:00
procui: Avoid crash during title shutdown
This commit is contained in:
parent
251662aa94
commit
c0f02bcbd6
@ -355,6 +355,8 @@ namespace proc_ui
|
||||
{
|
||||
if (!s_isInitialized.exchange(false))
|
||||
return;
|
||||
if (!OSIsSchedulerActive())
|
||||
return; // CafeSystem shutdown in progress, OS functions shouldn't be called anymore. reset() will clean up state on next re-init
|
||||
if ( !s_isInForeground )
|
||||
CancelBackgroundAlarms();
|
||||
for (sint32 i = 0; i < Espresso::CORE_COUNT; i++)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user