1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-17 13:36:39 +00:00

PollManager: Add Connected and IsBound check

This commit is contained in:
TSR Berry 2024-09-24 19:11:21 +02:00
parent 940dda32b7
commit eae65be6c2
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2

View file

@ -108,8 +108,10 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd.Impl
{
outputEvents |= PollEventTypeMask.Error;
// TODO: Check ProxyClient.Connected and ProxyClient.IsBound when implemented.
// See ManagedSocketPollManager
if (!socket.ProxyClient.Connected || !socket.ProxyClient.IsBound)
{
outputEvents |= PollEventTypeMask.Disconnected;
}
}
if (eventDict[SelectMode.SelectRead].Contains(socket))