mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-28 05:34:11 -04:00
sm: supercede ams extension via DetachClient
This commit is contained in:
parent
4190281b2f
commit
4a82d9bf28
3 changed files with 15 additions and 15 deletions
|
@ -30,7 +30,10 @@ namespace ams::sm::impl {
|
|||
std::scoped_lock lk(GetUserSessionMutex());
|
||||
{
|
||||
R_ABORT_UNLESS(smInitialize());
|
||||
ON_SCOPE_EXIT { smExit(); };
|
||||
ON_SCOPE_EXIT {
|
||||
R_ABORT_UNLESS(smDetachClient());
|
||||
smExit();
|
||||
};
|
||||
|
||||
return f();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue