Skip to content

Commit d3bab73

Browse files
committed
Fix crash.
1 parent e3198d2 commit d3bab73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SerialPrograms/Source/NintendoSwitch/Framework/NintendoSwitch_SingleSwitchProgramSession.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ void SingleSwitchProgramSession::run_program_instance(SingleSwitchProgramEnviron
9595
try{
9696
env.console.controller().cancel_all_commands();
9797
}catch (...){}
98+
std::lock_guard<std::mutex> lg(program_lock());
9899
m_scope.store(nullptr, std::memory_order_release);
99100
throw;
100101
}

0 commit comments

Comments
 (0)