sm: supercede ams extension via DetachClient

This commit is contained in:
Michael Scire committed 2021-01-27 14:36:15 -08:00
1 parent 4190281b2f
commit 4a82d9bf28
3 files changed
+15 -15

No files matched your search

@@ -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();
}