From eae65be6c268f3ecfbbf55875fa8532299bfbc21 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Tue, 24 Sep 2024 19:11:21 +0200 Subject: [PATCH] PollManager: Add Connected and IsBound check --- .../Sockets/Bsd/Impl/ManagedProxySocketPollManager.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedProxySocketPollManager.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedProxySocketPollManager.cs index fd7e730ee..02e6dad48 100644 --- a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedProxySocketPollManager.cs +++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedProxySocketPollManager.cs @@ -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))