mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Close sm session properly
This commit is contained in:
parent
d91c315f77
commit
68a77ac950
@ -99,7 +99,9 @@ Result smInitialize(void)
|
||||
|
||||
void smExit(void)
|
||||
{
|
||||
if (atomicDecrement64(&g_refCnt) == 0) {
|
||||
if (atomicDecrement64(&g_refCnt) == 0)
|
||||
{
|
||||
ipcCloseSession(g_smHandle);
|
||||
svcCloseHandle(g_smHandle);
|
||||
g_smHandle = INVALID_HANDLE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user