mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-17 08:46:44 +00:00
Allow BSD sockets Poll to exit when emulation ends (#6650)
This commit is contained in:
parent
a8f7ababb5
commit
2ddd3dd4a7
@ -440,8 +440,9 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd
|
|||||||
|
|
||||||
// If we are here, that mean nothing was available, sleep for 50ms
|
// If we are here, that mean nothing was available, sleep for 50ms
|
||||||
context.Device.System.KernelContext.Syscall.SleepThread(50 * 1000000);
|
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)
|
else if (timeout == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user