stratosphere: only hold sm sessions open when needed
This commit is contained in:
1 parent
c3875796df
commit
b09adb6a34
16 files changed
+432
-403
No files matched your search
@@ -35,12 +35,12 @@ void NsMitmMain(void *arg) {
|
||||
Utils::WaitSdInitialized();
|
||||
|
||||
/* Ensure we can talk to NS. */
|
||||
{
|
||||
DoWithSmSession([&]() {
|
||||
if (R_FAILED(nsInitialize())) {
|
||||
std::abort();
|
||||
}
|
||||
nsExit();
|
||||
}
|
||||
});
|
||||
|
||||
/* Create server manager */
|
||||
auto server_manager = new WaitableManager(1);
|
||||
|
||||
Reference in new issue
Block a user