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))