Explorar el Código

Limit remote closed session removal to SM service (#6248)

gdkchan hace 2 años
padre
commit
e5066449a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Ryujinx.HLE/HOS/Services/ServerBase.cs

+ 1 - 1
src/Ryujinx.HLE/HOS/Services/ServerBase.cs

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