sm: supercede ams extension via DetachClient
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user