Limit remote closed session removal to SM service

This commit is contained in:
Gabriel A 2024-02-03 01:17:12 -03:00
parent d704bcd93b
commit 6dcb867816

View File

@ -287,7 +287,7 @@ namespace Ryujinx.HLE.HOS.Services
_wakeEvent.WritableEvent.Clear();
}
}
else if (rc == KernelResult.PortRemoteClosed && signaledIndex >= 0)
else if (rc == KernelResult.PortRemoteClosed && signaledIndex >= 0 && SmObjectFactory != null)
{
DestroySession(handles[signaledIndex]);
}