aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2024-04-11 09:56:21 -0300
committerGitHub <noreply@github.com>2024-04-11 14:56:21 +0200
commit2ddd3dd4a7e03aa14626d3f4336d20b904ef4c3a (patch)
treed4e4e719913270249dd76537df46bd7842079cf9
parenta8f7ababb594bd20aebe6192c465559d1b2b8f73 (diff)
Allow BSD sockets Poll to exit when emulation ends (#6650)1.1.1278
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs
index 1e8a9005..21d48288 100644
--- a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs
+++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs
@@ -440,8 +440,9 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd
// If we are here, that mean nothing was available, sleep for 50ms
context.Device.System.KernelContext.Syscall.SleepThread(50 * 1000000);
+ context.Thread.HandlePostSyscall();
}
- while (PerformanceCounter.ElapsedMilliseconds < budgetLeftMilliseconds);
+ while (context.Thread.Context.Running && PerformanceCounter.ElapsedMilliseconds < budgetLeftMilliseconds);
}
else if (timeout == -1)
{